Forum Discussion
external monitor curl redirect location
I don't believe that's possible natively within a single cURL statement. A few options though:
-
If you know that you're going to be redirected to a specific URI, issue the original cURL request with this URI to potentially avoid the redirect.
-
Create a local Hosts entry on the LTM and point url.domain.com to 10.1.1.2.
Worst case you could still use cURL without -L, capture the response and parse the location header, and then make a new request. This would make for an interesting shell script, but definitely possible.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
