http://qs1969.pair.com?node_id=1157984


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

Ahh ... that bad decision of CGI tying the mime-type of application/xml to XFORMS ... use text/xml instead.

-derby
  • Comment on Re^3: Finding XML POST data in HTTP::Server::Simple::CGI

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:42 UTC
    Unfortunately, I do not specify that. It is part of the developing TAXII/STIX standards. It would seem only right that the service be able to handle any XML content type.

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

      update: just saw the response to update CGI to properly handle application/xml. That may be a better idea than using CGI::Simple -- YMMMV.

      Then unfortunately you cannot use HTTP::Server::Simple::CGI out of the box, you'll need to tell it to use something other than CGI. The docs show how you could use CGI::Simple.

      my $server = SimpleSrv->new(8080); $server->cgi_class('CGI::Simple'); $server->cgi_init(sub { require CGI::Simple; }); $server->host('127.0.0.1'); $server->run();

      -derby