cybercape
09-26-2009, 06:02 PM
I am using the -L option in CURL to follow redirections in downloading websites. Is there a way to append an argument to the redirected URL? Basically, if one has this
curl -L http://anexamplesite.com/test.php?arg=foo
and anexamplesite.com redirects to, say,
http://redirectedsite.com/test.php
it can drop the arg=foo argument. How do I tell CURL to append the argument to the redirected URL so that CURL requests instead
http://redirectedsite.com/test.php?arg=foo
?
Thanks
curl -L http://anexamplesite.com/test.php?arg=foo
and anexamplesite.com redirects to, say,
http://redirectedsite.com/test.php
it can drop the arg=foo argument. How do I tell CURL to append the argument to the redirected URL so that CURL requests instead
http://redirectedsite.com/test.php?arg=foo
?
Thanks