Forum Discussion
Julio_Navarro
Cirrostratus
Jun 25, 2014external monitor curl redirect location
Hello;
I am creating a external monitor in sh where is working fine only if the landing page doesn't changes.
Now, I can use curl option "-L" but is not working becuase is not using the IP ...
Kevin_Stewart
Employee
Jun 25, 2014I 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.
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects