Hello All,

I hope you can help me to do this:

I have an in incoming regular POST method in the form /admin/ with a special header 'x-myheader:', which needs to be analyzed and rewritten,
Then the POST is passed on to the original server on a different port (in it's original form + changed x-myheader) where the connection is maintained until
a response is retrieved and passed back to the original request.


Request comes in to Squid or some other Proxy:

       frontend.mydomain.com:80
       POST ----> /admin/
       HTTP/1.1
         Host: backend1.mydomain.com
         Content-Length: 555
         Content-Type: application/vnd.*
         x-myheader: 12345
         Connection: Keep-Alive
         <BINARY DATA>

Connection is held open while we do a call-out procedure rewrites
   x-myheader: value
and request goes back out to intended recipient

      frontend.mydomain.com:8080
      POST ----> /admin/
         HTTP/1.1
         Host: backend1.mydomain.com
         Content-Length: 555
         Content-Type: application/vnd.*
         x-myheader: 54321
         Connection: Keep-Alive
         <BINARY DATA>

Response goes back to requester

       HTTP/1.1 200 OK
       Content-Type: application/vnd.*
       Content-Length: 74
       Connection: Keep-Alive
       Keep-Alive: timeout=15, max=1000000
       Your message has been recieved, thank you!


How can we do this using SQUID. Thanks in advance for your responses.

Thanks,
Muthukumar.

_________________________________________________________________
Love shopping online? Get this e credit card. http://server1.msn.co.in/features/amex/ Save cost, add value!




Reply via email to