From: K. G. <kim...@gm...> - 2008-09-24 07:02:21
|
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? 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. - Kim |