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.
|