18 Oct
2019
18 Oct
'19
4:54 p.m.
Ciao Giuseppe, The media-type may be missing in your request: http:send-request( <http:request method='post'> <http:body media-type='application/octet-stream'/> </http:request>, 'http://something', 'something' ) See [1,2] for more information. Hope this helps, Christian [1] http://docs.basex.org/wiki/HTTP_Module#POST_Request [2] http://expath.org/spec/http-client#d2e178
curl --data "something" http://something
which I would like to perform using the HTTP module, but I cannot specify the data argument in the query. Any help?
The following does not work:
http:send-request(<http:request method="post"></http:request>, 'http://something' , "something" )
Best, Giuseppe