Quote:
Originally posted by Paradog Thanks for your constructive contribution bpmax
Yeah sure trap_jaw, connecting is easy but how do you send binary messages through your HTTP proxy? If I'm not wrong it would be something like
HTTP/1.1 200 OK
Content-Length: 14
COntent-Type: Gnutella/Traffic (?)
[Binary Messages]
So eh? |
The HTTP 1.1 specs (rfc 2616) introduced the CONNECT command for proxies. Upon receiving the http proxy then creates an outgoing connection to the requested host and sends a 200-reply if successful including a couple of other headers terminated by "\r\n\r\n" but after that the proxy simply forwards all traffic between the two endpoints.
This is also known has HTTP tunnel. Between the host requesting the connection and the proxy this is like a regular HTTP connection, for the remote endpoint it's just an incoming TCP connection and the proxy does not send any headers on its own initiative.
Do not confuse this with HTTP GET or HTTP POST, you don't have to send any headers for every gnutella message.