From: Divye K. <div...@gm...> - 2008-09-06 18:37:32
|
Hi Dean, On Fri, Aug 22, 2008 at 12:43 PM, Dean Michael Berris < mik...@gm...> wrote: > Right, but I'm more interested in something that can be made part of > the unit tests so that I can verify whether the http::client we have > has really sets the User-Agent header. > I've committed a change (changeset 85) that allows you to see the HTTP headers in the response from cgi-bin/requestinfo.py There are a couple of bugs in the library that put in non-existent headers in the response. However, it should be sufficient to test for setting of http headers. I'm thinking of refactoring the entire file to make parsing of the response easy. What would be the ideal response from the CGI script? CSV, XML or something else? Currently, the response is rather kludgy to parse. Comments would be helpful. Divye -- An idealist is one who, on noticing that a rose smells better than a cabbage, concludes that it will also make better soup. H. L. Mencken (1880 - 1956) My official web site: http://people.iitr.ernet.in/shp/061305/ Webmaster: http://www.drkapoorsclinic.com Blog: http://divyekapoor.blogspot.com |