curl-users
Re: POSTing on an https site
Date: Fri, 25 Feb 2005 07:28:08 +0100
Murray Patterson wrote:
> well the form on the webpage that I'm trying trying to fill looks like:
>
> <form action="https://www.dyndns.org/account/services/dyndns/doublethink.ath.cx"
> method="post">
> <input type="hidden" name="__login" value="1" />
> <label for="username">
> User: <input type="text" name="username" id="username" size="14"
> value="murraypatterson" />
> </label>
> <label for="password">
> Pass: <input type="password" name="password" id="password" size="14" />
> </label>
> <input type="submit" value="Login" />
> </form>
>
> so I responded similarily:
>
> curl -d "username=murraypatterson&password=*******"
> https://www.dyndns.org/account/services/dyndns/doublethink.ath.cx
You might need the "__login", and possibly also the "submit":
curl -d
"username=murraypatterson&password=*******&__login=1&submit=Login" ...
And I bet you need to handle one or two cookies as well.
Linus
Received on 2005-02-25