Re: [Geoserver-users] [Geotools-devel] forwarding GEBCO WMS fails - help needed

2024-04-25 Thread Ian Turton
On Thu, 25 Apr 2024 at 14:02, Roar Brænden 
wrote:

>
> Certainly that first Accept header seems a little out-dated, but as Ian
> mentioned it doesn't explain why we will get a 403 status code.
>
>
>
Because the ESRI devs don't understand how the web works!

Ian

-- 
Ian Turton
___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] [Geotools-devel] forwarding GEBCO WMS fails - help needed

2024-04-25 Thread Roar Brænden


> 24. apr. 2024 kl. 15:34 skrev Andrea Aime :
> 
> On Wed, Apr 24, 2024 at 3:30 PM Roar Brænden  > wrote:
> What I'm confused about is how the two classes should influence on what is 
> sent as Accept-header. Nothing in the code indicates something like that.
> 
> One is the built-in java client, the other the Apache one... I guess they 
> might have different defaults, if no accept-header is specified?
> Just thinking out loud
> 
> 

Hi,

You are absolutely right, Andrea, about that Accept-header being default for 
the Java built-in client.
Here I have provided extended logging of the HTTP traffic for the calls with 
SimpleHttpClient and MultithreadedHttpClient when they're used in combination 
with org.geotools.wms.WebMapServer:

[25.apr. 14:39:08] FINE  URL is 
https://wms.gebco.net/mapserv?REQUEST=GetCapabilities=1.3.0=WMS
[25.apr. 14:39:08] FINE  
Setting header User-Agent = GeoTools HTTPClient (32-SNAPSHOT)
[25.apr. 14:39:08] FINE  sun.net.www.MessageHeader@589da3f35 pairs: 
{GET /mapserv?REQUEST=GetCapabilities=1.3.0=WMS HTTP/1.1: null}
{User-Agent: GeoTools HTTPClient (32-SNAPSHOT)}
{Host: wms.gebco.net}
{Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2}
{Connection: keep-alive}


[25.apr. 14:51:01] FINE  
http-outgoing-0 >> GET 
/mapserv?REQUEST=GetCapabilities=1.3.0=WMS HTTP/1.1
[25.apr. 14:51:01] FINE  
http-outgoing-0 >> Host: wms.gebco.net
[25.apr. 14:51:01] FINE  
http-outgoing-0 >> Connection: Keep-Alive
[25.apr. 14:51:01] FINE  
http-outgoing-0 >> User-Agent: GeoTools/32-SNAPSHOT (MultithreadedHttpClient)
[25.apr. 14:51:01] FINE  
http-outgoing-0 >> Accept-Encoding: gzip,deflate

Certainly that first Accept header seems a little out-dated, but as Ian 
mentioned it doesn't explain why we will get a 403 status code.

Regards Roar___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] [Geotools-devel] forwarding GEBCO WMS fails - help needed

2024-04-24 Thread Andrea Aime
On Wed, Apr 24, 2024 at 3:30 PM Roar Brænden 
wrote:

> What I'm confused about is how the two classes should influence on what is
> sent as Accept-header. Nothing in the code indicates something like that.
>

One is the built-in java client, the other the Apache one... I guess they
might have different defaults, if no accept-header is specified?
Just thinking out loud

Cheers
Andrea
___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] [Geotools-devel] forwarding GEBCO WMS fails - help needed

2024-04-24 Thread Roar Brænden


> 22. apr. 2024 kl. 15:01 skrev Peter Smythe :
> 
> 
> 
> And then under what circumstances would the WMS data store fall back to the 
> Simple HTTPClient rather than using the MultithreadedHttpClient (HTTP 
> connection pooling), even if the above is ticked?
> 


Hi,
The answer to the question about how WMS data store would fall back to Simple 
HTTPClient if the "Use HTTP connection pooling" checkbox is ticked, is that it 
shouldn't happen. It might happen something if the server is missing the 
gt-http-commons.jar, but I assume that would lead to an exception.

What I'm confused about is how the two classes should influence on what is sent 
as Accept-header. Nothing in the code indicates something like that.

Best regards,

Roar Brænden

___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users