Omit the headers from XML message
Stefan Behnel
stefan_ml at behnel.de
Fri May 28 12:46:54 EDT 2010
kaklis at gmail.com, 28.05.2010 17:24:
> Hi i have the following xml message i want to omit the headers, any
> hints?
>
> POST /test/pcp/Listener HTTP/1.1
> User-Agent: Jakarta Commons-HttpClient/3.1
> Host: 127.0.0.1:50002
> Content-Length: 547
>
> <pt_control_message xmlns="http://demo.com/demo">
> <cmdReply>
> <sessionList>
> <session>
> <id>scvdcvsdv</id>
> <subscriberId>sdfv</subscriberId>
> <subscriberName>Antonis Kaklis</subscriberName>
> <presence>away</presence>
> <note>testing the new client</note>
> <ipAddress>jlkdjf</ipAddress>
> <deviceClass>android</deviceClass>
> </session>
> </sessionList>
> </cmdReply>
> </pt_control_message>
Use the HTTP server that comes with Python, instead of the plain socket server.
Stefan
More information about the Python-list
mailing list