cURL / Mailing Lists / curl-users / Single Mail

curl-users

https, redirection and authentication using POST

From: Andrew Lister <aclister_at_bigpond.net.au>
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

        https://account.bigpond.com/broadband/usage/secure/monthlyusage.do

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" \
        "https://account.bigpond.com/broadband/usage/secure/monthlyusage.do"

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.

Thanks

Andrew

-- 
Andrew Lister <aclister at bigpond dot net dot au>
-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
Received on 2003-05-29