An alternate approach would be to just tell curl to follow redirects. From the curl manpage:

       -L/--location
(HTTP/HTTPS) If the server reports that the requested page has a different location (indicated with the header line Location:) this flag will let curl attempt to reattempt the get on the new place. If used together with -i/--include or -I/-- head, headers from all requested pages will be shown. If authentication is used, curl will only send its credentials to the initial host, so if a redirect takes curl to a different host, it won't inter- cept the user+password. See also --location-trusted on how to
              change this.


However, there is a reason why this is off by default, and that is security. So it should be well considered before we just add -L to the command line list of curl...


Cheers,
Max


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Fink-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to