我们怎么能欺骗 HTTP 协议呢? [英] How could we fool the HTTP protocol?

查看:27
本文介绍了我们怎么能欺骗 HTTP 协议呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

虽然 HTTP 无处不在,但它带有标题的包袱,在我的情况下,这变得越来越成问题.我要传输的数据是 HTTP 标头大小的一小部分.

Although HTTP is ubiquitous it comes with its baggage of Headers which in my case is becoming more of a problem. My data to be transferred is an iota of the HTTP header size.

  • 我可以使用其他协议吗仍然可以理解的用途浏览器和其他网络,并且不附带HTTP 的包袱?
  • 是否有其他方法可以跳过标头并将其添加到目标位置,以便通过网络仅传输极少的数据?

推荐答案

  1. 没有.
  2. 没有.

许多 HTTP 标头是可选的.典型的浏览器请求远大于最小请求,可能如下所示:

Many HTTP headers are optional. A typical browser request is much larger than a minimal request, which might look like:

GET /doc HTTP/1.1
Host: example.com
Connection: close

(我可以自信地说这种形式的请求有效,因为我在通过 telnet example.com 80 测试 Web 服务器响应时一直使用它们.)

(I can say with confidence that requests of this form work because I use them all the time when testing Web server response via telnet example.com 80.)

您可能只需省略一些标题即可获得有用的结果.

Possibly you can get useful results simply by omitting some headers.

这篇关于我们怎么能欺骗 HTTP 协议呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆