本文介绍了验证HTTP POST数据包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能告诉我此HTTP POST数据包出了什么问题? Web服务器似乎正在使它陷入困境.

在URLEncoding之前且没有Base64编码的数据:

Can anyone tell me what is wrong with this HTTP POST packet? The web server seems to be ingoring it.

Prior to URLEncoding and without Base64 encoded data:

"POST /Default.aspx HTTP/1.1\r\nHost: www.host1.com\r\nContent-Type: application/x-www-form-urlencoded\r\nContent-Length: 17\r\n\r\ndata=TestDataSend"



帖子编码:



Post encoding:

"POST+%2fDefault.aspx+HTTP%2f1.1%0d%0aHost%3a+vztest.cloudapp.net%0d%0aContent-Type%3a+application%2fx-www-form-urlencoded%0d%0aContent-Length%3a+17%0d%0a%0d%0adata%3dVGVzdERhdGFTZW50"



数据包的结尾("data%3dVGVzdERhdGFTZW50")是data = TestDataSend,这是我要发送的内容.

如果您想知道,这是针对嵌入式应用程序的.我试图不使用整个HTTP协议,而仅使用简化的POST.

感谢您提供任何见解.



The end of the packet ("data%3dVGVzdERhdGFTZW50") is data=TestDataSend which is what I am trying to send.

If you are wondering, this is for an embedded application. I am trying not to use the entire HTTP protocol and just use a simplified POST.

Thanks for any insight.

推荐答案


这篇关于验证HTTP POST数据包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-19 17:26