Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^4: Finding XML POST data in HTTP::Server::Simple::CGI

by Wiggins (Hermit)
on Mar 16, 2016 at 19:30 UTC ( [id://1157986]=note: print w/replies, xml ) Need Help??


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

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.

Replies are listed 'Best First'.
Re^5: Finding XML POST data in HTTP::Server::Simple::CGI
by Anonymous Monk on Mar 16, 2016 at 19:39 UTC
      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.

        CGI was included with Perl itself, up to and including Perl v5.20. According to the Changelog, the problematic Xforms support was present in the CGI distributed with Perl v5.8.9 and up.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1157986]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (3)
As of 2024-04-18 23:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found