When should one use CONNECT and GET HTTP methods at HTTP Proxy Server?

后端 未结 3 1618
旧时难觅i
旧时难觅i 2020-12-07 13:03

I\'m building a WebClient library. Now I\'m implementing a proxy feature, so I am making some research and I saw some code using the CONNECT method to request a

3条回答
  •  孤城傲影
    2020-12-07 13:53

    As a rule of thumb GET is used for plain HTTP and CONNECT for HTTPS

    There are more details though so you probably want to read the relevant RFC-s

    http://www.ietf.org/rfc/rfc2068.txt http://www.ietf.org/rfc/rfc2817.txt

提交回复
热议问题