cURL question
Posted: Wed Aug 04, 2004 8:45 am
I am trying to use curl to access a webpage. When I try to get information about a particulat item:
curl http://catalog.bigcompany.com/cgi-bin/c ... a=chair123
it redirects me to a login website and returns the following:
The document has moved <A HREF="/noauth/bclogin.php?return=/cgi-bin/catalog?va=chair123">here</A>.<P>
From the source code for the form, the table information is:
<input type=text name=usermail "myemail@domain.com">
<input type=password name=userpass value="pass123">
<input type=hidden name=nocookies value="")
<input type=hidden name=enterkey value="hit")
<input type=submit name=userlogin value="login")
When this is entered through a webpage, the next page served is the chair123 page after I enter my name and password.
I just want to use curl from the command line to achieve this; first manually and then to integrate the command into my script.
Any ideas on how to do this?
curl http://catalog.bigcompany.com/cgi-bin/c ... a=chair123
it redirects me to a login website and returns the following:
The document has moved <A HREF="/noauth/bclogin.php?return=/cgi-bin/catalog?va=chair123">here</A>.<P>
From the source code for the form, the table information is:
<input type=text name=usermail "myemail@domain.com">
<input type=password name=userpass value="pass123">
<input type=hidden name=nocookies value="")
<input type=hidden name=enterkey value="hit")
<input type=submit name=userlogin value="login")
When this is entered through a webpage, the next page served is the chair123 page after I enter my name and password.
I just want to use curl from the command line to achieve this; first manually and then to integrate the command into my script.
Any ideas on how to do this?