哪位强人了解Http协议底层,请进

pileisi1st 2006-06-15 09:33:15
请问<INPUT maxLength=127 size=40 value=clearmenu name=COMMAND> 
<INPUT type=submit value=Send name=gpibsend>
在点击Send按钮后,向Web服务器发送了什么?也就是HTTP的头域是什么?
...全文
231 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
yanganquan 2006-06-16
  • 打赏
  • 举报
回复
meizz(梅花雪) 砖石闪闪发光,要想要个呀!
bary 2006-06-16
  • 打赏
  • 举报
回复
能得到MVP的亲自解答,你已经不朽了,呵呵
meizz(梅花雪) ( ) 正解!
pileisi1st 2006-06-16
  • 打赏
  • 举报
回复
POST /Comm.html HTTP/1.1
Accept: */*
Referer: http://192.168.0.3/Comm.html
Accept-Language: zh-cn
Content-Type: text\r\nAccept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)Host: 192.168.0.3
Content-Length: 47
Proxy-Connection: Keep-Alive
Pragma: no-cache

COMMAND=*IDN
gpibsend=Send
name=

上面就是我请求的内容,返回的仅仅是Http /1.1 100 continue
是不是因为我最后的 name= 没写啊
pileisi1st 2006-06-16
  • 打赏
  • 举报
回复
返回的是Http /1.1 100 continue,请高手指教
pileisi1st 2006-06-16
  • 打赏
  • 举报
回复
非常非常感谢meizz(梅花雪)的解答,我试过了,果然如此。

还有一个问题,请高人再帮我一把:我用VC给web服务器发送请求以后,仅仅返回Http /1.1 continue,请问这是什么意思,我得不到html语句,问题到底出在哪里?请高人点拨。

我是第一次在这里提问题,请问怎么结贴?
BlueDestiny 2006-06-15
  • 打赏
  • 举报
回复
用个snifer,HTTP的信息都可以获取的。
pileisi1st 2006-06-15
  • 打赏
  • 举报
回复
非常感谢,我试试看:)
huitouren519 2006-06-15
  • 打赏
  • 举报
回复
不太懂 学习
meizz 2006-06-15
  • 打赏
  • 举报
回复
装一个 Fiddler,就可以把发送的/接收的HTTP包看得清清楚楚了。比如这个 reply.asp 的回复提交就是这样的信息:

POST /Expert/reply.asp HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
Referer: http://community.csdn.net/Expert/xsl/Reply_Xml.asp?Topicid=4822428
Accept-Language: zh-cn
Content-Type: application/x-www-form-urlencoded
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; SV1; Maxthon; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
Proxy-Connection: Keep-Alive
Content-Length: 360
Host: community.csdn.net
Pragma: no-cache
Cookie: csdnstyle=3; (cookie信息我隐去了)

Topicid=4822428&xmlReply=aaaaa&csdnname=&csdnpassword=&ReplyContent=replycontent

61,115

社区成员

发帖
与我相关
我的任务
社区描述
层叠样式表(英文全称:Cascading Style Sheets)是一种用来表现HTML(标准通用标记语言的一个应用)或XML(标准通用标记语言的一个子集)等文件样式的计算机语言。
社区管理员
  • HTML(CSS)社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧