there is an xml file with the contents of
<?xml version='1.0' encoding='UTF-8'?>
<request>
<seller>
<id>550054</id>
</seller>
<category>
<id>1</id>
</category>
<lang>en</lang>
</request>
import vibe.vibe;
void main()
{
requestHTTP("http://site.com/balblabla.asp",
(scope req) {
// could add headers here before sending,
req.method = HTTPMethod.POST;
req.contentType("application/xml");
// write a POST body, or do similar things. ???? xml file
// how to send an xml file to an external resource (http://site.com/balblabla.asp)
},
(scope res) {
logInfo("Response: %s", res.bodyReader.readAllUTF8());
}
);
}
sorry I do not understand, please show an example