It's ok I think I will go search something like cygwin
to make a portable local proxy...
Btw, guys, I have a problem about receiving and sending request andresponse header in my proxy...
client -> serverProxy -> clientProxy -> server -> clientProxy -> serverProxy -> client
1. A client sends a raw request header
to the serverProxy(a socket).
2. The proxy translate them into web request header
then send it to the server via clientProxy(a socket).
3. The clientProxy get the response header
and the content. The proxy synchronizing it with serverProxy.
4. The serverProxy send the response header
and the content to the browser.
In step 2, any tips for translating raw to web request header?
In step 4, do we need to do something with response header in step 4?
What is the advantages/disadvantages of blocking and non-blocking connection in socket?