cURL / Mailing Lists / curl-users / Single Mail

curl-users

How to POST to the last redirect page

From: Bin Chen <binary.chen_at_gmail.com>
Date: Fri, 8 Jun 2007 23:11:44 +0800

Hi,

Suppose an Access point will redirect any URL request to a
authentication address, that is when I input www.a.com then the AP
will redirect it to www.auth.com/auth, where there is a form to fill
in, then will do the authentication.
How to write a curl script to achieve the authentication process, I
know I can use post but the final URL can't be known.By the way, the
authentication web page is identical but only the URL may differ.
I know when curl do POST with redirect, it will only apply the POST to
the first one. But in this case I need to POST to the last one.

Thanks.
Bin
Received on 2007-06-08