cURL / Mailing Lists / curl-users / Single Mail


newbie login question

From: Horvath Adam <>
Date: Thu, 12 Mar 2009 13:39:22 +0100


I have a CURL question.

I created a login form. I like to fill this form and send with curl from
debian command-line. An outer domain authenticate this form and redirect
to another page. I need this page output back.

bash curl->login.php->outer authentication domain->redirect.php->bash curl

http://mydomain/login.php (my page):

<form method="post" action="https://outerdomain/auth.aspx">
Login name: <input type="text" name="LOGINNAME"/><br/>
Password: <input type="password" name="PWD"/><br/>
<input type="submit" name="sendbtn" value="Login"/>

... curl fill "LOGINNAME" and "PWD" fields and press the "Login" button and
accept the certificate (https).

... the outer domain authenticate (https://outerdomain/auth.aspx) and
send the answer back: http://mydomain/redirect.php (my page)

redirect.php output authentication result (success/no success)

curl have to get back this output and print to command line

First, I would be happy, if I could send the login form and so on

I tried this:

curl -L -e -d "LOGINNAME=name&PWD=password&sendbtn=Login"

Not work.

Can you help me?

List admin:
Received on 2009-03-12