curl-users
help needed
Date: Sat, 1 Apr 2006 16:15:46 +0100 (BST)
I need to recreate the following in curl but having
trouble writing the correct functions :o(
/cgi-bin/login.fcg
POST /cgi-bin/login.fcg HTTP/1.1
Host:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1;
en-GB; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1
Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-gb,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: /cgi-bin/playerWelcome.fcg
Cookie: sessionId=00002208672d6c28
Content-Type: application/x-www-form-urlencoded
Content-Length: 33
companyName=dfdsfsdfdsf&x=73&y=16
HTTP/1.x 302 Found
Transfer-Encoding: chunked
Date: Sun, 12 Mar 2006 16:56:53 GMT
Content-Type: text/html; charset=iso-8859-1
Server: Apache/1.3.27 (Unix) PHP/4.3.0
Location: /cgi-bin/welcome.fcg
----------------------------------------------------------
/cgi-bin/welcome.fcg
GET /cgi-bin/welcome.fcg HTTP/1.1
Host:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1;
en-GB; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1
Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-gb,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: /cgi-bin/playerWelcome.fcg
Cookie: sessionId=00002208672d6c28
HTTP/1.x 200 OK
Transfer-Encoding: chunked
Date: Sun, 12 Mar 2006 16:56:57 GMT
Content-Type: text/html
Expires: Sun, 12 Mar 2006 16:56:57 GMT
Server: Apache/1.3.27 (Unix) PHP/4.3.0
Pragma: no-cache
----------------------------------------------------------
/cgi-bin/clickSq.fcg?rowPos=23&colPos=30
GET /cgi-bin/clickSq.fcg?rowPos=23&colPos=30 HTTP/1.1
Host:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1;
en-GB; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1
Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-gb,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
Cookie: sessionId=00002208672d6c28
HTTP/1.x 200 OK
Transfer-Encoding: chunked
Date: Sun, 12 Mar 2006 16:57:06 GMT
Content-Type: text/html
Expires: Sun, 12 Mar 2006 16:57:06 GMT
Server: Apache/1.3.27 (Unix) PHP/4.3.0
Pragma: no-cache
----------------------------------------------------------
/cgi-bin/action.fcg
POST /cgi-bin/action.fcg HTTP/1.1
Host:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1;
en-GB; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1
Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-gb,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: /cgi-bin/clickSq.fcg?rowPos=23&colPos=30
Cookie: sessionId=00002208672d6c28
Content-Type: application/x-www-form-urlencoded
Content-Length: 43
action=takeover&rowPos=23&colPos=30&type=14
HTTP/1.x 200 OK
Transfer-Encoding: chunked
Date: Sun, 12 Mar 2006 16:57:10 GMT
Content-Type: text/html
Expires: Sun, 12 Mar 2006 16:57:10 GMT
Server: Apache/1.3.27 (Unix) PHP/4.3.0
Pragma: no-cache
----------------------------------------------------------
/cgi-bin/smallMap.fcg?rowPos=23&colPos=30
GET /cgi-bin/smallMap.fcg?rowPos=23&colPos=30 HTTP/1.1
Host:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1;
en-GB; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1
Accept: image/png,*/*;q=0.5
Accept-Language: en-gb,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: /cgi-bin/action.fcg
Cookie: sessionId=00002208672d6c28
HTTP/1.x 200 OK
Transfer-Encoding: chunked
Date: Sun, 12 Mar 2006 16:57:14 GMT
Content-Type: image/gif
Expires: Sun, 12 Mar 2006 16:57:14 GMT
Server: Apache/1.3.27 (Unix) PHP/4.3.0
Pragma: no-cache
------------------------------------------------------
Any help anyone can offer would be appreciated!
Thanks :o)
___________________________________________________________
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com
Received on 2006-04-01