From: Divye K. <div...@gm...> - 2008-09-24 07:16:30
|
Hello, On Wed, Sep 24, 2008 at 12:32 PM, Kim Gräsman <kim...@gm...> wrote: > Hello, > > On Wed, Sep 24, 2008 at 00:07, Dean Michael Berris > <mik...@gm...> wrote: > > > > localhost - - [24/Sep/2008 06:04:28] "POST /cgi-bin/echo_headers.py > > HTTP/1.0" 200 - > > Traceback (most recent call last): > > File > "/home/dean/Source/C++/cpp-netlib-http_integration/libs/network/test/server/cgi-bin/echo_headers.py", > > line 17, in <module> > > hdrs = cgisupport.http_headers(os.environ.get('HTTP_ALL_HEADERS')) > > This is where I get the value HTTP_ALL_HEADERS from the env vars. > > > File > "/home/dean/Source/C++/cpp-netlib-http_integration/libs/network/test/server/cgi-bin/cgisupport.py", > > line 11, in __init__ > > self.parse(header_str) > > File > "/home/dean/Source/C++/cpp-netlib-http_integration/libs/network/test/server/cgi-bin/cgisupport.py", > > line 24, in parse > > self.headers = self.__parse_headers(header_str) > > File > "/home/dean/Source/C++/cpp-netlib-http_integration/libs/network/test/server/cgi-bin/cgisupport.py", > > line 31, in __parse_headers > > lines = str.split('\n') > > AttributeError: 'NoneType' object has no attribute 'split' > > Apparently the object returned from there is not a string, maybe it's > just empty? > None type indicates that the env var was empty. > > Could you check that your http_test_server.http actually calls > http_test_server.py and not cgi_server.py? Oh! I see now, the C++ > facade is not correctly updated -- it checks whether > http_test_server.py exists, but executes cgi_server.py, in the Unix > case. I'll fix that and commit. > Thanks Kim. > > - Kim > > 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 |