Bounce your http requests around with bouncy
substack.net
substack.net
Since bouncy is just parsing the http headers and sending along the raw tcp stream
How does it deal with a second HTTP requests on one kept-alive connection that should be routed to another server?E.g. do two requests on one kept-alive connection get translated into two separate requests for the upstream server or will the upstream connection also be kept-alive/reused?
Maybe could even add the ability to peek into the stream to determine which host to forward to based on protocol (think FTP etc.).
For protocol aware redirection, there are various reverse proxies with that ability. TCPMUX was probably one of the firsts, but it requires explicit support by the client. Delegate[1], on the other hand, can identify the protocol and multiplex based on that, IINM.
This seems to redirect locally. It seems to be more of a dynamic port redirection (the article could've been a little clearer..).
You wouldn't use SSH to redirect stuff from port x on localhost to port y and you couldn't do it dynamically (unless you'd like to spawn ssh for each connection, setting up -L according to header information in the request).