HTTPS:PATCH - Request using http:send-request()
Tuesday, 7 November 2017 · 1 message
WB
Wissemann, Bodo7 Nov 2017 10:26 #
Hey,
we’re trying to access an API that only supports HTTPS:PATCH – Requests using BaseX. We’ve tested like this:
let $response := http:send-request(<http:request method='patch' href="https://postman-echo.com/patch?foo1=bar1&foo2=bar2" timeout='10'/>)return (
$response[1],
json:serialize($response[2]))
But only get
"Not Found" as response:
It seems BaseX treats HTTPS:PATCH-Requests like GET-Requests. We only managed to make PATCH-Requests without https:
let $response := http:send-request(<http:request method='patch' href="http://postman-echo.com/patch?foo1=bar1&foo2=bar2" timeout='10'/>)return (
$response[1],
json:serialize($response[2]))
Any ideas?
Many thanks and all the best!
Bodo
--
Bodo Wissemann
adesso AG
Rotherstr. 19
10245 Berlin
Email bodo.wissemann at adesso.de
-------------------------------------------------------
Quoted text · 1 line
>>> business. people. technology. <<<
-------------------------------------------------------
adesso AG mit Sitz in Dortmund
Vorstand: Michael Kenfenheuer (Vors.), Christoph Junge, Andreas Prenneis Vorsitzender des Aufsichtsrates: Prof. Dr. Volker Gruhn
Amtsgericht Dortmund HRB 20663
Wenn Software Engineering Ihr Thema ist, ist das Ihre Veranstaltung
Written for BaseX 8.6. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery