Reputation: 43
My HTTPS
Proxy should work like this:
Connection
with Connect
I have read now some stuff over the CONNECT
. But I do not really understand it and how to implement it.
My Question is now what exactly does CONNECT
do?CONNECT
is an HTTP
Request. But all it does it establish a connection. but how does this help me?
I can not see how to use it to achieve my goal.
greetings
Christoph
Upvotes: 1
Views: 1987
Reputation: 1964
Your first question: What exactly does CONNECT do?
As you said, CONNECT is an Http Request method for Client to Proxy server to establish a connection to the server in a SSL-encrypted communication. Once the connection is established from Client to Server via your Proxy Server, client will upgrade it to TLS connection by initiating TLS handshake. Then there is a direct give-and-take of messages between client and server. This forms one of the way of Tunneling from client to server connection.
This probably also answers your other question: How does it help you?
As you said you are using a proxy server. Hence your client will communicate to your proxy server through CONNECT request. Upon receiving this request your proxy server will proceed as explained above.
Client------[CONNECT Request]-----Proxy Server--------------Server
I don't think it will read or modify any of your data as it is solely meant to establish connection to server and pass the traffic. Sending of actual request data and fetching of response is done by HTTP GET method.
For any more queries you may like to have a walk through following links:
(a)CONNECT request to a forward HTTP proxy over an SSL connection?
(b)When should one use CONNECT and GET HTTP methods at HTTP Proxy Server?
Upvotes: 1