[Geoserver-users] Content-type versus Content-Type

Hi list,

first of all sorry for the cross-post, but I really have no clue if this is
a Geoserver or an OpenLayers issue.

I was using an OpenLayers AJAX POST call to Geoserver via proxy.cgi.

Now it turns out that Geoserver will only accept the request if I change
proxy.cgi from (note the lowercase type):

headers = {"Content-Type": os.environ["CONTENT_TYPE"]}

to:

headers = {"Content-type": os.environ["CONTENT_TYPE"]}

Where is this issue caused? Geoserver is running on Tomcat. Content-Type
seems the correct notation to me.

The error Geoserver gives me when using the former is:

<ows:ExceptionText>Could not determine geoserver request from http request
org.apache.catalina.connector.RequestFacade@anonymised.com</ows:ExceptionText>

TIA.

Best regards,
Bart

--
Bart van den Eijnden
OSGIS, Open Source GIS
http://www.osgis.nl

Bart van den Eijnden (OSGIS) ha scritto:

Hi list,

first of all sorry for the cross-post, but I really have no clue if this is
a Geoserver or an OpenLayers issue.

I was using an OpenLayers AJAX POST call to Geoserver via proxy.cgi.

Now it turns out that Geoserver will only accept the request if I change
proxy.cgi from (note the lowercase type):

headers = {"Content-Type": os.environ["CONTENT_TYPE"]}

to:

headers = {"Content-type": os.environ["CONTENT_TYPE"]}

Where is this issue caused? Geoserver is running on Tomcat. Content-Type
seems the correct notation to me.

The error Geoserver gives me when using the former is:

<ows:ExceptionText>Could not determine geoserver request from http request
org.apache.catalina.connector.RequestFacade@anonymised.com</ows:ExceptionText>

Hum, look like a GeoServer issue to me, http header parsing should
not be case sensitive (I believe, haven't really checked).
Justin, this is in the dispatcher. Opinions?
Cheers
Andrea

Hum, look like a GeoServer issue to me, http header parsing should
not be case sensitive (I believe, haven't really checked).
Justin, this is in the dispatcher. Opinions?

A quick test test with curl says that case does not matter... What is
the actual mime type in this instance? Is it text/xml ?

Cheers
Andrea

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:4007,47976536101708992556831!

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org