0%

http proxy 数据

http代理简单表示 http proxy 发送和接收的协议

  • 发送到使用proxy时发送数据:

    • http 协议:
      1
      2
      3
      4
      5
      6
        ~ nc -l 7890
      GET http://kekxv.github.io/ HTTP/1.1
      Host: kekxv.github.io
      User-Agent: curl/7.77.0
      Accept: */*
      Proxy-Connection: Keep-Alive
    • https 协议:
      1
      2
      3
      4
      5
        ~ nc -l 7890
      CONNECT kekxv.github.io:443 HTTP/1.1
      Host: kekxv.github.io:443
      User-Agent: curl/7.77.0
      Proxy-Connection: Keep-Alive
    • 其它 协议:
      1
      2
        ~ nc -l 7890
      CONNECT 127.0.0.1:22 HTTP/1.0
  • proxy发送到实际目标的数据:

    1
    2
    3
    4
    5
    6
    7
      ~ nc -l 7890
    GET / HTTP/1.0
    Host: 127.0.0.1:7890
    Connection: close
    Via: 1.1 tinyproxy (tinyproxy/1.11.0)
    User-Agent: curl/7.77.0
    Accept: */*