Need a very simple bash-based webserver for logging XML in HTTP POST

Posted by Syffys on Stack Overflow See other posts from Stack Overflow or by Syffys
Published on 2014-06-04T21:00:31Z Indexed on 2014/06/04 21:24 UTC
Read the original article Hit count: 192

Filed under:
|
|
|

As in title, it's for testing purpose and I need it to be extremely light (1 line to 1 single light file).

Here is a XML query sample:
XML_QUERY=$(cat <<EOF
<?xml version='1.0' encoding='UTF-8'?>
<Test></Test>
EOF
)
curl -H "Content-type: text/xml; charset=utf-8" -H "Soapaction: \"\"" -k -d "${XML_QUERY}" http://localhost:8088

Here are some of the tracks I have found so far even if I wasnt able to adapt them to work as I expect:

Thanks in advance!

© Stack Overflow or respective owner

Related posts about python

Related posts about linux