Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/kotlin/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Proxy Geoserver工作区和代理_Proxy_Geoserver - Fatal编程技术网

Proxy Geoserver工作区和代理

Proxy Geoserver工作区和代理,proxy,geoserver,Proxy,Geoserver,有人能解释一下工作区代理是如何工作的吗? 什么是正确的配置,以便我可以从shell发出请求(请参见下文) 我让Geoserver在docker容器中运行,正在端口12018上的主机中侦听。 通过网络浏览器一切正常 以下URL请求适用于浏览器: 使用typeName作为geonode:my_data_name35也可以: 但是从cURL,第一个请求返回: <?xml version="1.0" ?> <ServiceExceptionReport version="1.

有人能解释一下工作区代理是如何工作的吗? 什么是正确的配置,以便我可以从shell发出请求(请参见下文)

我让Geoserver在docker容器中运行,正在端口12018上的主机中侦听。 通过网络浏览器一切正常

以下URL请求适用于浏览器:

使用typeName作为geonode:my_data_name35也可以:

但是从cURL,第一个请求返回:

<?xml version="1.0" ?>
<ServiceExceptionReport
   version="1.2.0"
   xmlns="http://www.opengis.net/ogc"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://www.opengis.net/ogc http://schemas.opengis.net/wfs/1.0.0/OGC-exception.xsd">
   <ServiceException code="InvalidParameterValue" locator="typeName">
      Feature type :my_data_name35 unknown
</ServiceException></ServiceExceptionReport>
<?xml version="1.0" ?>
<ServiceExceptionReport
   version="1.2.0"
   xmlns="http://www.opengis.net/ogc"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://www.opengis.net/ogc http://schemas.opengis.net/wfs/1.0.0/OGC-exception.xsd">
   <ServiceException code="InvalidParameterValue" locator="typeName">
      Feature type geonode:my_data_name35 unknown
</ServiceException></ServiceExceptionReport>

功能类型:我的\u数据\u名称35未知
第二个请求从cURL返回:

<?xml version="1.0" ?>
<ServiceExceptionReport
   version="1.2.0"
   xmlns="http://www.opengis.net/ogc"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://www.opengis.net/ogc http://schemas.opengis.net/wfs/1.0.0/OGC-exception.xsd">
   <ServiceException code="InvalidParameterValue" locator="typeName">
      Feature type :my_data_name35 unknown
</ServiceException></ServiceExceptionReport>
<?xml version="1.0" ?>
<ServiceExceptionReport
   version="1.2.0"
   xmlns="http://www.opengis.net/ogc"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://www.opengis.net/ogc http://schemas.opengis.net/wfs/1.0.0/OGC-exception.xsd">
   <ServiceException code="InvalidParameterValue" locator="typeName">
      Feature type geonode:my_data_name35 unknown
</ServiceException></ServiceExceptionReport>

要素类型地理节点:我的数据名称35未知

感谢您的帮助。谢谢

我发现了这个问题,其实很基本

请求的资源需要身份验证,其中浏览器传递cookie

使用cURL还需要通过身份验证

它不会返回“禁止”,可能是因为某些资源不需要身份验证


很抱歉发出噪音。

我认为这不是代理问题-请添加您正在使用的GeoServer版本和实际使用的CURL命令。