Re: find out client request structure from server head handling

Juliusz Chroboczek <[email protected]>
Newsgroups gmane.comp.web.polipo.user
Message-ID <[email protected]>
> 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.

It's a little bit more complicated than that.  In Polipo, there isn't
a one-to-one correspondence between client and server requests -- it is
possible for multiple client requests to be aggregated into a single
server request.

However, for each server request there is a ``principal'' client
request, the one that prompted the scheduling of the server request.  As
you guessed, it's in request->request.

> I know it might be RFC compliant to do the convert, but I suspect some
> client do not expect to receive chunked reply.

Polipo is already able to downconvert to HTTP/1.0.  Why don't you simply
fudge the conditional in client.c:1731 ?

                                        Juliusz

------------------------------------------------------------------------------
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.