curl-users
Handling multiple redirects to various CGI scripts
From: E. Mark Floyd II <Ernest.M.Floyd_at_jpl.nasa.gov>
Date: Fri, 21 Jan 2005 13:30:19 -0800
Date: Fri, 21 Jan 2005 13:30:19 -0800
I wanted to know how to handle a multiple redirect using Curl, if it is
possible (the documentation vaguely says it's possible). Here is the
scenario we're trying to solve:
"Use curl to script a login. The login is comprised of three parts.
The initial curl call to login.cgi, which needs to be followed by
subsequent cgi scripts which need to all happen in order to complete the
login."
I am currently using the -L option to handle unlimited number of
redirects, but it always stops after login.cgi, the redirect at the 2nd
step doesn't happen.
Can someone please help shed some light on implementing this in Curl.
Regards,
Mark
-- To be conscious that you are ignorant is a great step to knowledge. Benjamin Disraeli (1804 - 1881), Sybil, 1845Received on 2005-01-21