in reply to Re^2: Finding XML POST data in HTTP::Server::Simple::CGI
in thread Finding XML POST data in HTTP::Server::Simple::CGI

Um, no, you try it and tell us what problems you had. (Because it works perfectly fine on my end, even with application/xml and even with the request in your first post.)

Replies are listed 'Best First'.
Re^4: Finding XML POST data in HTTP::Server::Simple::CGI
by Wiggins (Hermit) on Mar 16, 2016 at 19:30 UTC
    Using the test program from above, I found the the Content type made a difference with the above script (on my system).

    tuser:/u1/data/MeerKat/taxiiSite$ telnet localhost 8080 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. POST /hello HTTP/1.1 Content-type: text/plain Content-length: 6 foobar HTTP/1.1 200 Content-Type: text/plain; charset=ISO-8859-1 <<<foobar>>> Connection closed by foreign host. tuser:/u1/data/MeerKat/taxiiSite$ telnet localhost 8080 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. POST /hello HTTP/1.1 Content-type: application/xml Content-length: 6 foobar HTTP/1.1 200 Content-Type: text/plain; charset=ISO-8859-1 <<<undef>>> Connection closed by foreign host.
    There may also be a difference between the result in the 'handle_request()' and the dispatched 'resp_hello()'.

    It is always better to have seen your target for yourself, rather than depend upon someone else's description.

        Bingo!! That fixed it.

        And I have no memory of ever loading CGI, it was probably a dependency of something

        It is always better to have seen your target for yourself, rather than depend upon someone else's description.