LT CASEY RYBACK
07 Jul 2010, 05:27 PM
Hi, there is a website where you can sign peoples guestbook.I setup live HTTP headers, and seen what the browser sent. When I try it it doesn't work. I've been at this for ages. Could anyone tell me the best way to do this in PHP? It uses a session ID, a user IDm a login id, and cookies (which are sent with the headers. I'd like to know what do I have to send. Here's a recording:
POST /profile/gb-add HTTP/1.1
Host: www.spinchat.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6 (.NET CLR 3.5.30729)
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Referer: http://www.spinchat.com/profile/gb-add?id=4267467
Cookie: settings=100000; loginid=9khOW_KJ3xGC-el46HwjyA; session1=mQP1PWEkaXTyDLi7lXMwCwfHaTzweK3xGivGTN6HwjyA2877824; design=21-0; setup=vhost=spinchat.com&url=%2Fhome; session2=mQP1PWEkaXTyDLi7lXMwCwfHaTzweK3xGivGTN6HwjyA2877824; __utma=258090056.220455797.1278526860.1278526860.1278535200.2; __utmc=258090056; __utmz=258090056.1278526860.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); ban=4306601
Content-Type: application/x-www-form-urlencoded
Content-Length: 96
session_id=mQP1PWEkaXTyDLi7lNMwCwfHaTzweK3xGivGTN6HwjyA2877824&id=4267467&ta=Hello&submit=Submit
...
POST /profile/gb-add HTTP/1.1
Host: www.spinchat.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6 (.NET CLR 3.5.30729)
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Referer: http://www.spinchat.com/profile/gb-add?id=4267467
Cookie: settings=100000; loginid=9khOW_KJ3xGC-el46HwjyA; session1=mQP1PWEkaXTyDLi7lXMwCwfHaTzweK3xGivGTN6HwjyA2877824; design=21-0; setup=vhost=spinchat.com&url=%2Fhome; session2=mQP1PWEkaXTyDLi7lXMwCwfHaTzweK3xGivGTN6HwjyA2877824; __utma=258090056.220455797.1278526860.1278526860.1278535200.2; __utmc=258090056; __utmz=258090056.1278526860.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); ban=4306601
Content-Type: application/x-www-form-urlencoded
Content-Length: 96
session_id=mQP1PWEkaXTyDLi7lNMwCwfHaTzweK3xGivGTN6HwjyA2877824&id=4267467&ta=Hello&submit=Submit
...