Em đang tìm hiểu về http header để gửi dữ liệu lên web.
link:Code:
http://www5.cbox.ws/box/index.php?boxid=234693&boxtag=gfs2fm&sec=submit
dùng addon của FF tóm đc 1 đoạn như sau:
http request:
POST /box/index.php?boxid=234693&boxtag=gfs2fm&sec=submit HTTP/1.1
Host: www5.cbox.ws
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
Accept: */*
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: 115
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Referer: http://www5.cbox.ws/box/?boxid=234693&boxtag=gfs2fm&sec=form
Content-Length: 126
Cookie: nme_234693=helu; key_234693=a32284a2ee6a6fddf8eb0a87b0169fd001256522; clid_234693=31; qfoc=1
Pragma: no-cache
Cache-Control: no-cache
nme=helu&eml=&key=a32284a2ee6a6fddf8eb0a87b0169fd001256522&fkey=&pic=&auth=&pst=%3AD&captme=&capword=&caphash=&aj=x&lp=5970539
http response:
HTTP/1.1 200 OK
Date: Sat, 26 Feb 2011 16:55:23 GMT
Server: Apache
P3P: CP="NOI DSP COR NID CURa OUR NOR"
Set-Cookie: nme_234693=helu; expires=Sat, 05 Mar 2011 16:55:23 GMT; path=/
Set-Cookie: eml_234693=deleted; expires=Fri, 26 Feb 2010 16:55:22 GMT; path=/
Set-Cookie: key_234693=fb2926fd80d0f08df8eb0a87b0169fd001256522; expires=Sat, 05 Mar 2011 16:55:23 GMT; path=/
Set-Cookie: lpt_234693=1298739323; expires=Sat, 26 Feb 2011 17:55:23 GMT; path=/
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html
Cho em hỏi đoạn màu xanh có ý nghĩa gì vậy ? Em thử viết 1 tools(C#) để post data lên nhưng chưa biết bắt đầu ra sao.Mong mọi người giúp đỡ.