Announcements
This site is in read only until July 22 as we migrate to a new platform; refer to this community post for more details.
Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

ServiceCallout does not follow URL Redirects Http 302 or 301

I issue a service callout to a URL [HTTPS Endpoint] which does 3 redirects to provide the response.

If I try this URL in Postman with Follow Redirects turned on it returns a 200 OK or if I turn off the Follow redirects it comes back with a 302 and the redirect URL in the Location header.

In Apigee Edge if you issue a service callout or a javascript callout it does not come back with the content or the headers for 302 for https endpoints. I wanted to do it in Javascript where I can sequentially call the next redirect URL until I get 200 and then return the response. Seems like this is a a product limitation.

It seems to work for HTTP

0 13 2,239
13 REPLIES 13