为什么我会从Web服务器收到301响应?

时间:2019-04-16 19:51:05

标签: post soap https http-status-code-301

我正在尝试使用在整个SIM3520A设备中传输的HTTP命令登录Web服务器,但是当我发送代码时,它向我显示301错误(永久移动),该错误指示所请求的资源已确定移至由Location标头指定的网址。

> POST
> https://gXXXXXXXXXXX/AlmacenarInformacionWS.AlmacenarInformacionWSHttpSoap12Endpoint/
> HTTP/1.1
> Host: xxxxxxxxx   
> Accept-Encoding: gzip,deflate     
> Content-Type: application/soap+xml;charset=UTF-8;action="urn:almacenarArchivo"     
> Connection: Keep-Alive     
> User-agent:axis2     
> cache-control:"no-cache"     
> Content-Length: 1007
> 
><soap:Envelope
> xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
>................

我很想获得成功的状态。但我收到了

    HTTP/1.1 301 Moved Permanently
Server: nginx
Date: Tue, 16 Apr 2019 21:33:31 GMT
Content-Type: text/html
Content-Length: 178
Connection: keep-alive
Location: https://gtpc.metropol.gov.co/gtpc/services/AlmacenarInformacionWS?wsdl
X-Frame-Options: ORIGINAL
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff

<html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>

0 个答案:

没有答案