亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

Chinaunix

標(biāo)題: 網(wǎng)絡(luò)HTTP頭協(xié)議解析問(wèn)題 [打印本頁(yè)]

作者: wishrr    時(shí)間: 2010-10-12 16:49
標(biāo)題: HTTP協(xié)議頭
GET http://members.3322.org%s?%s=%s.3322.org&%s=%s&username=%s&password=%s
  這樣的形式對(duì)嗎?返回不了任何信息
作者: 冠希照相機(jī)    時(shí)間: 2010-10-12 16:53
后面應(yīng)該還有個(gè)版本號(hào) 抓包看一下就知道了
作者: ecjtubaowp    時(shí)間: 2010-10-12 16:56
后面還有一些字段,像Host等。
作者: 冠希照相機(jī)    時(shí)間: 2010-10-12 17:06
GET http://www.72891.cn/thread-1798464-1-1.html HTTP/1.1

Host: www.72891.cn

Proxy-Connection: keep-alive

Referer: http://www.72891.cn/forum-23-1.html

Cache-Control: max-age=0

Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.63 Safari/534.3

Accept-Encoding: gzip,deflate,sdch

Accept-Language: zh-CN,zh;q=0.8

Accept-Charset: GBK,utf-8;q=0.7,*;q=0.3

Cookie: sso_token=b7fc53dd166739cf314681d80fc4a1b07578938; sso_cookietime=2592000; l8cde41429=b1zM1rLTXuqEk1lt7nvG4TSn5AQhhuZ3j8rjw9f%2B5lU; cu_sid=b6FHlD; cu_fid40=1286871720; sso_auth=PVzM0u2AArnXxwlt7XeVsmWu4VQg3%2BJ32Mrjw9f%2B5lWXFRFBXORB5U31%2BrYJaI494vDfJ1ZkWf8Uz5ChoLxu5upNXEWBCtEwgNjv9x8O0yiWQFcwBpV7ocnFhaifAEgYGw; cu_auth=f3f9H%2BH4EbNRrn9ErYD83gu3ZM86Gu4lOXvGxHY50Nb4Yst8hwaY9DifgZt3QsQwHjO0juK%2Bkbdwjdgo98dpPL7eUw66aMQ; cu_fid168=1286860153; cnzz_a30029882=10; sin30029882=http%3A//www.chinaunix.net/; rtime30029882=3; ltime30029882=1286873732711; cnzz_eid30029882=99186517-1283482501-http%3A//chinaunix.net/; discuz_fastpostrefresh=0; cu_fid31=1286874090; cu_visitedfid=23D31D168D40D123D32D46; cu_oldtopics=D1798319D1249255D1798471D1798327D1798160D1798455D1798453D1798436D1798459D1798470D1798468D1797741D1798457D1798351D1798301D1798464D1795274D1796385D1797740D1798449D1795994D1797971D1797165D1797325D1793313D1797384D1793552D1797114D1798448D1796436D1797106D1797946D1797974D1797801D1798441D1798062D1798361D1798424D1798055D1798369D1798376D1795862D1798386D1798304D1798358D1798363D1798364D1797845D1794503D1787062D1798181D1795059D880964D1798306D1797959D1798352D1798345D1798350D1798348D1798346D1798343D1798340D1798337D1798334D1798333D1798335D1798331D1798223D1798326D1798134D1798325D1798324D1798323D1798320D1798318D1798316D1798305D1798314D1797968D1798289D1798298D1798302D1798300D1798259D1798247D1798236D1798226D1798216D1798235D1798233D1798231D1798229D1798225D1798227D1798222D1798221D1798218D1798196D1798220D1798219D1798199D1798212D1798211D1798141D1798203D1797965D1798107D1798197D1798195D1797986D1798187D1798091D1798159D1798175D1796691D1798098D1798124D; cu_fid23=1286874138; smile=1D1
作者: ideawu    時(shí)間: 2010-10-12 17:53
服務(wù)器要配置了支持proxy才接受帶域名的全路徑URL.
作者: xinglp    時(shí)間: 2010-10-12 17:57
發(fā)往代理的請(qǐng)求才是這個(gè)樣子的
作者: zzyong08    時(shí)間: 2010-10-12 21:24
發(fā)往代理的是這個(gè)樣子。

使用curl -vv選項(xiàng),可以看到http協(xié)議的樣子。
作者: zhaohongjian000    時(shí)間: 2010-10-12 21:33
wireshark完破此問(wèn)題
作者: wishrr    時(shí)間: 2010-10-12 22:09
我按格式發(fā)出內(nèi)容,抓包也有內(nèi)容,但返回的是 Connection: Keep-Alive\015\012 這樣的請(qǐng)求內(nèi)容 ,根本就沒(méi)有解析出內(nèi)容!
作者: wishrr    時(shí)間: 2010-10-12 22:11
我是用c寫(xiě)的:

snprintf(buf, BUFFER_SIZE, "GET %s?%s=%s.3322.org&%s=%s&username=%s&password=%s HTTP/1.1\015\012", request,"hostname",host,"wildcard",wildcard ? "ON" : "OFF",user_name,password);
  output(buf);
  snprintf(buf,BUFFER_SIZE,"Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*\015\012");
  output(buf);
  snprintf(buf,BUFFER_SIZE,"Accept-Language: zh-cn\015\012");
  output(buf);
  snprintf(buf,BUFFER_SIZE,"Accept-Encoding: gzip, deflate\015\012");
  output(buf);
  snprintf(buf,BUFFER_SIZE,"User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; 360SE)\015\012");       
  output(buf);
  snprintf(buf,BUFFER_SIZE,"Host: %s\015\012",server);
  output(buf);
  snprintf(buf,BUFFER_SIZE,"Connection: Keep-Alive\015\012");
  output(buf);
  snprintf(buf,BUFFER_SIZE,"Authorization: Basic d2lzaGVzMTIzOjE5OTA3Mg==\015\012");
  output(buf);
  snprintf(buf, BUFFER_SIZE,"Cookie: username=%s;\015\012",user_name);

我按格式發(fā)出內(nèi)容,抓包也是一樣的,但再讀取的時(shí)候是 Cookie: username=%s 這樣的請(qǐng)求內(nèi)容 ,根本就沒(méi)有解析出內(nèi)容
    怎么回事?
作者: wishrr    時(shí)間: 2010-10-12 22:13
標(biāo)題: 網(wǎng)絡(luò)HTTP頭協(xié)議解析問(wèn)題
我是用c寫(xiě)的:

snprintf(buf, BUFFER_SIZE, "GET %s?%s=%s.3322.org&%s=%s&username=%s&password=%s HTTP/1.1\015\012", request,"hostname",host,"wildcard",wildcard ? "ON" : "OFF",user_name,password);
  output(buf);
  snprintf(buf,BUFFER_SIZE,"Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*\015\012");
  output(buf);
  snprintf(buf,BUFFER_SIZE,"Accept-Language: zh-cn\015\012");
  output(buf);
  snprintf(buf,BUFFER_SIZE,"Accept-Encoding: gzip, deflate\015\012");
  output(buf);
  snprintf(buf,BUFFER_SIZE,"User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; 360SE)\015\012");       
  output(buf);
  snprintf(buf,BUFFER_SIZE,"Host: %s\015\012",server);
  output(buf);
  snprintf(buf,BUFFER_SIZE,"Connection: Keep-Alive\015\012");
  output(buf);
  snprintf(buf,BUFFER_SIZE,"Authorization: Basic d2lzaGVzMTIzOjE5OTA3Mg==\015\012");
  output(buf);
  snprintf(buf, BUFFER_SIZE,"Cookie: username=%s;\015\012",user_name);

我按格式發(fā)出內(nèi)容,抓包內(nèi)容也是和發(fā)送是一樣的,但再讀取的時(shí)候是 Cookie: username=%s 這樣的請(qǐng)求內(nèi)容 ,根本就沒(méi)有解析出內(nèi)容
    怎么回事?




歡迎光臨 Chinaunix (http://www.72891.cn/) Powered by Discuz! X3.2