How does a proxy server work with tcp / http connections?

Since I am new to the world of the Internet / network, I always encounter such doubts during programming;) .. My doubts:

  • While working with a proxy server, how do my requests and responses work? Does this mean that my request headers and data will first reach the proxy server->, then the proxy server will send it (the same headers and data) to the corresponding server. And server responses to it with the response header and body to the proxy server-> then the proxy server sends it to my computer. Correctly?

  • While using websockets, we update our HTTP connection to TCP. At this time, what happens on the proxy server? Does proxyserver also support TCP connectivity?

  • After opening such TCP connections, can the proxy monitor / register these messy sockets?

  • And most importantly, is the proxy server transparent or acts as the original server on the client side?

Thanks for any answers or useful links in advance.

+3
source share
2 answers
  • Yes.

  • There is no such thing as "updating HTTP to TCP." An HTTP connection is already a TCP connection. Therefore, the question does not make sense.

  • He is able to track the connection, and he can see all the data that is exchanged in both directions.

  • I'm not sure what that means. After processing the CONNECT command, the proxy simply copies the bytes in both directions. Perhaps this is "transparent" in terms of your question.

+3
source
  • Yes, it's right.

  • - html5, . -, - , , , . apache, , perl python, . , , -, . - websockets, , websockets, , , . - websockets, , , , ; , .

  • , -, SSL.

, , - , .

: , , :

http://www.infoq.com/articles/Web-Sockets-Proxy-Servers http://stackoverflow.com/questions/2201317/why-dont-current-websocket-client-implementations-support-proxies

http://en.wikipedia.org/wiki/WebSocket#Proxy_traversal

0

All Articles