cURL / Mailing Lists / curl-users / Single Mail

curl-users

curl command based on Live HTTP Headers

From: Jason Davidson <jad658_at_gmail.com>
Date: Fri, 13 Feb 2009 22:48:30 -0800

Hi, I'm brand new to curl and I'm trying to figure out how to use curl from
the command line to login to
https://students.berkeley.edu/myberkeley/myberkeleyapp.asp. I installed
Live HTTP Headers and I recorded the headers but I don't know how to take
this information and apply it to curl. Using the HTTP headers below, can
anyone point me in the right direction? Thanks.

https://students.berkeley.edu/myberkeley/myberkeleyapp.asp

POST /myberkeley/myberkeleyapp.asp HTTP/1.1
Host: students.berkeley.edu
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.6)
Gecko/2009011913 Firefox/3.0.6
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: https://students.berkeley.edu/myberkeley/myberkeleyapp.asp
Cookie: %5FCookieCheck=1;
__utma=41573937.4015967032478062000.1234417485.1234417485.1234417485.1;
__utmz=41573937.1234417485.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none);
ASPSESSIONIDQCCDSTCA=GLPLABPCGKCNBOODIAKIGCDJ;
ASPSESSIONIDCCATDTCB=NIHOOPPCHIBGLDPBGLEAJDKF
Content-Type: application/x-www-form-urlencoded
Content-Length: 95
secUserID=USERID&defaultsecUserID=+&secPassword=PASSWORD&secsubmit=Submit&secSessionID=+
HTTP/1.x 200 OK
Date: Sat, 14 Feb 2009 06:39:40 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
P3P: CP='NOI NID TAIa OUR NOR STA'
Content-Length: 6630
Content-Type: text/html
Cache-Control: private

-- 
Jason Davidson

-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-02-14