I feel like I am having a stupid moment! On a normal HTTP server when the REQUEST_METHOD is POST you pull CONTENT_LENGTH characters from STDIN. But when using HTTPServer (v1.1.1) I only get the following environment variables:
The content I am looking for is this XML:2005/06/29 16:17:51 - POST /foo/bar.pl Method => POST Use of uninitialized value in concatenation (.) or string at G:\EngDat +a\EP2058 InContact\EP2058-002\server_01.pl line 42. Query => SERVER_NAME ->> mercury SCRIPT_NAME ->> /foo/bar.pl REMOTE_ADDR ->> 64.105.135.235 SERVER_ADMIN ->> webmaster@mercury SERVER_PROTOCOL ->> HTTP/1.1 REQUEST_METHOD ->> POST <?xml version ->> "1.0"?> <campaign menuid="9839-2" callid="0" action="5" duration="0" comment=" +test"/> REMOTE_NAME ->> h-64-105-135-235.lsanca54.covad.net GATEWAY_INTERFACE ->> CGI/1.1 SERVER_SOFTWARE ->> Net::HTTPServer/1.1.1 HTTP_USER_AGENT ->> Mozilla/4.0 (compatible; Win32; WinHttp.WinHttpReq +uest.5)
The ->> is my separator where I print the list. My poor little brain cannot see how I am supposed to get the content! Help me please!<?xml version ->> "1.0"?> <campaign menuid="9839-2" callid="0" action="5" duration="0" comment=" +test"/>
In reply to In HTTPServer - how do I get POST content? by jdtoronto
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |