cURL / Mailing Lists / curl-users / Single Mail


https, redirection and authentication using POST

From: Andrew Lister <>
Date: Thu, 29 May 2003 22:32:25 +1000

Hi all

I'm a bit stuck with accessing a particular page which combines a secure
site, redirection and POST'ing a username and password. It's probably
easier if I just give you the address and what I need rather than trying
to explain things so any interested parties can have a go at it.

The site is at

On trying to access that page, it redirects several times and ends up
with a login / password prompt which, when entered, takes me to the page
I want to process.

What I've tried to use is

        curl -L -s -v -S -c cookies -b cookies -d \
        "USERNAME=xxxxxx&PASSWORD=yyyyyy" \

which seems to be headed in the right direction as it gets me to the
appropriate login page but the form POST data seems to have been
"inserted" on the first page and not the last.

If anyone has any hints/ideas I'd be very grateful.



Andrew Lister <aclister at bigpond dot net dot au>
This email is sponsored by: eBay
Get office equipment for less on eBay!
Received on 2003-05-29