import module namespace http="http://www.zorba-xquery.com/modules/http-client";

variable $arg := <hello>there</hello>;
variable $result :=
  http:post("http://zorbatest.lambda.nu:8080/cgi-bin/test-text", $arg,
           "application/xml");

$result[2]



(:

Expected output:

Method: POST
Query: 
Post: 
&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;hello xmlns:http-schema="http://expath.org/ns/http-client"&gt;there&lt;/hello&gt;

                
:)