Dommage.
Do you know more about the server you are communicating with? Maybe it rejects http (POST?) requests sent by Java?
You could try to supply the curl-specific request headers (such as User-Agent, and others) with http:send-request.
Could you additionally forward the full Wireshark logs for curl?
I remember that Adam (Retter) added the http-version option to the new version of the HTTP Client Module (it’s not available in 1.0 yet). In the given case, I’d assume that http-version=1.1 should be okay, because curl uses it as well.
Tim Thompson timathom@gmail.com schrieb am Mi., 2. Feb. 2022, 21:22:
Thanks for that. Still no luck, I'm afraid. Attached is the full HTTP info for the requests from BaseX (hostname info replaced with "example.org").
I should be able to stick with GET requests for now, but would be nice to have access to POST as well.
All best, Tim
-- Tim A. Thompson Metadata Librarian Yale University Library
On Wed, Feb 2, 2022 at 2:20 PM Christian Grün christian.gruen@gmail.com wrote:
I notice that curl doesn't include the Authorization header on the
first request, but I am out of my depth here.
That could be an interesting hint. In the latest snapshot [1], I have removed the Authorization header from the first request. Can you check if it makes a difference?
If not, could you share the headers of the second requests with us?