Re: [basex-talk] changes in BaseX-10.0 w.r.t. http:send-request() / fetch:doc() functions?

2022-08-05 Thread Andy Bunce
Great! I just spotted that the home page was failing in the same way. It has no redirect. /Andy let $uri := 'http://vocab.getty.edu/' return http:send-request() On Fri, 5 Aug 2022 at 10:13, Ron Van den Branden wrote: > I'm stunned, thanks so much! > > Best, > > Ron > On 5/08/2022 11:05,

Re: [basex-talk] changes in BaseX-10.0 w.r.t. http:send-request() / fetch:doc() functions?

2022-08-05 Thread Ron Van den Branden
I'm stunned, thanks so much! Best, Ron On 5/08/2022 11:05, Christian Grün wrote: This is what we found out (by the help of Wireshark, and some online resources): • The new JDK HTTP Client does not attach a default "Accept" header to the HTTP Request. • The getty.edu web

Re: [basex-talk] changes in BaseX-10.0 w.r.t. http:send-request() / fetch:doc() functions?

2022-08-05 Thread Christian Grün
This is what we found out (by the help of Wireshark, and some online resources): • The new JDK HTTP Client does not attach a default "Accept" header to the HTTP Request. • The getty.edu web server (Tomcat?) returns a syntax error when this header is missing in the request. • We also had a look at

Re: [basex-talk] changes in BaseX-10.0 w.r.t. http:send-request() / fetch:doc() functions?

2022-08-05 Thread Ron Van den Branden
Hi, Thanks for chiming in, Andy! I realized yesterday that I should have added how some URLs can be retrieved without problem in BaseX-10.0, e.g.: let $uri := 'https://www.w3.org' returnhttp:send-request() ...which is well-formed (to rule out non-XML parser issues), and indeed has no

Re: [basex-talk] changes in BaseX-10.0 w.r.t. http:send-request() / fetch:doc() functions?

2022-08-04 Thread Andy Bunce
There seems to be a 303 redirect. Maybe this is relevant https://stackoverflow.com/a/66325588/3210344 /Andy [image: image.png] On Thu, 4 Aug 2022 at 16:19, Christian Grün wrote: > What I have assessed so far is that it’s the Java Client that fails to > retrieve the result. It’s the same

Re: [basex-talk] changes in BaseX-10.0 w.r.t. http:send-request() / fetch:doc() functions?

2022-08-04 Thread Christian Grün
What I have assessed so far is that it’s the Java Client that fails to retrieve the result. It’s the same response that’s returned by BaseX. String uri = "http://vocab.getty.edu/aat/300027473.rdf;; HttpClient client = HttpClient.newBuilder().build(); HttpRequest request =

Re: [basex-talk] changes in BaseX-10.0 w.r.t. http:send-request() / fetch:doc() functions?

2022-08-04 Thread Ron Van den Branden
Dear Christian, Whoops, the obvious, after all; thanks for kindly (and lightning fast) pointing that out, and looking into this! Best, Ron On 4/08/2022 16:55, Christian Grün wrote: Dear Ron, There has indeed been a substantial change in the way how http:send-request works; it’s now based

Re: [basex-talk] changes in BaseX-10.0 w.r.t. http:send-request() / fetch:doc() functions?

2022-08-04 Thread Christian Grün
Dear Ron, There has indeed been a substantial change in the way how http:send-request works; it’s now based on the contemporary Java HTTP Client API, which provides a better overall performance [1]. We’ll additionally mention that in the article on the HTTP Client Module. It should yield the

[basex-talk] changes in BaseX-10.0 w.r.t. http:send-request() / fetch:doc() functions?

2022-08-04 Thread Ron Van den Branden
Hi, After upgrading BaseX to 10.0 (yay!), I notice how http:send-request() calls that used to work in 9.7 are now failing. I didn't find any changes documented between version 9.7 and 10.0 at https://docs.basex.org/wiki/HTTP_Client_Module. Yet (tested with the same JDK), I'm observing