find out client request structure from server head handling

Ming Fu <[email protected]>
Newsgroups gmane.comp.web.polipo.user
Message-ID <[email protected]>
Hi Juliusz,

Is there a reliable way to find out the client request from the
HttpServerHandlerHeaders() function?
I guess the request->request points to the client side request, I was
wondering if it is safe to use.

Here is what I want to try:

I want to pass the non-persistent information from the server side reply to
client request. So when an object is received, the polipo do not convert the
request to HTTP 1.1.
I know it might be RFC compliant to do the convert, but I suspect some
client do not expect to receive chunked reply. Here is the combination,

client -> polipo, http 1.1 request,

polipo forward to server,

server reply http 1.1 plus Header "Connection: close",  not chunked

polipo sends to client as
http 1.1, chunked encoding, and "Connection: keep-a-live"

When a client did not expect to receive chunked encoding, it run into
problem.

Thanks,
Ming
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.