From: Dean M. B. <mik...@gm...> - 2008-08-13 07:52:52
|
Hi Divye, On Wed, Aug 13, 2008 at 2:03 PM, Divye Kapoor <div...@gm...> wrote: > Hi, > >> >> See section 4.2 - Message Headers of RFC 2616 ( >> >> http://www.faqs.org/rfcs/rfc2388.html ). >> >> Headers can span multiple lines. This would require a change in the >> >> processing of the headers. >> > >> > I meant http://www.faqs.org/rfcs/rfc2616.html >> > >> >> Perhaps we should have a test for that as well to make sure there's a >> bug in the client in the first place. Can you make this happen with >> the Python CGI script? > > Yes. It can. I'll try to do it tonight. Otherwise it will have to wait for > the weekend after next as I have a wedding in the family to take care of > over the next few days. > No rush, I can try hacking it, but I'm not confident enough touching Python CGI code right now. >> >> Right now the client does not have a constructor. We can make use of >> the Boost.Parameter lib to make some of the options easily defined in >> the client constructor -- like redirect, authentication information, >> proxy, etc. I'm also thinking for having an overload to each method >> that allows you to define these options in each call. > > Good idea. > I'll get on it, but it will need some C++-side unit tests. I'll write those but I think it's going to take some time to implement the redirect handling to prevent infinite-looping redirects. There's also the referrer thing that needs to be defined, but I will need to read the HTTP docs about it as well. >> >> If we can have the Python CGI test return a redirect, perhaps we can >> expose the bug and test it as well. > > The python CGI cannot return a redirect response due to the way the response > headers are created in the python library code. It pre-empts a 3xx response > by sending a 200 response before calling the CGI script. As of now, we need > to find another way to do it: maybe a simple asio app that redirects a > request to a url on the python server? > Hmmm... Can't the CGI Server be set up to recognize a specific URI, then be told to redirect? >> >> How's the POST handler going? :D > > The wedding's going to push things back for me for a while, so it will be on > the hold list. :( > No rush, enjoy the wedding. :) -- Dean Michael C. Berris Software Engineer, Friendster, Inc. |