curl-users
Re: Page jump
Date: Fri, 26 Aug 2005 15:24:58 +0200 (CEST)
On Fri, 26 Aug 2005, Eriksson, Andreas (A.E.) wrote:
> When I tried this with curl it stops at the redirection page and prints out
> that page.
I wrote up a brand new FAQ entry for you (available at
http://curl.haxx.se/docs/faq.html#4.14)
4.14 Redirects work in browser but not with curl!
curl supports HTTP redirects fine (see item 3.8). Browsers generally support
at least two other ways to perform directs that curl does not:
1 - Meta tags. You can write a HTML tag that will cause the browser to
redirect to another given URL after a certain time.
2 - Javascript. You can write a javascript program embeded in a HTML page
that redirects the browser to another given URL.
There is no way to make curl follow these redirects. You must either
manually figure out what the page is set to do, or you write a script that
parses the results and fetches the new URL.
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2005-08-26