How to send HTTP POST request and recieve response?

Posted by Maxim Kachurovskiy on Stack Overflow See other posts from Stack Overflow or by Maxim Kachurovskiy
Published on 2010-06-14T15:18:47Z Indexed on 2010/06/14 15:22 UTC
Read the original article Hit count: 192

Filed under:

For example, I need to make the following Client C - Server S conversation and get XIMSS.nonce node value:

C:GET /ximsslogin/ HTTP/1.1
  Host: myserver.com
  Content-Type: text/xml
  Content-Length: 42

  <XIMSS><listFeatures id="list" /><XIMSS>

S:HTTP/1.1 200 OK
  Content-Length: 231
  Connection: keep-alive
  Content-Type: text/xml;charset=utf-8
  Server: CommuniGatePro/5.3

  <XIMSS><nonce>2C3E575E5498CE63574D40F18D00C873</nonce><language>german</language><response id="s"/></XIMSS> 

© Stack Overflow or respective owner

Related posts about android