Windows 7中运行的Windows 10中的POST请求出现500错误

时间:2018-06-22 19:25:54

标签: apache curl post com+ http-status-code-500

我有一个Windows 7服务器和Windows 10服务器,它们都使用Apache 2.2与COM + Web服务进行通信。从桌面上,到COM + Web服务的setState命令在两台服务器上都能成功运行。
以下GET命令在Windows 10服务器上(全部一行)失败:

POST

在Windows 7上运行该curl时,我得到:

curl --verbose  --header "Content-Type: text/xml; charset="UTF-8""    
--header "SOAPAction: "http://tempuri.org/action/Sample.GetTestValue"" 
--header "Expect: 100-continue" --data "User-Agent: HTTPClient" 
--data "Connection: Close" http://1.1.1.123:8000/TMPServices/Sample.SampleSvcs.WSDL

在Windows 10上运行该curl时,我得到:

*   Trying 1.1.1.123...
* TCP_NODELAY set
* Connected to 1.1.1.123 (1.1.1.123) port 8000 (#0)
> POST /TMPServices/Sample.SampleSvcs.WSDL HTTP/1.1
> Host: 1.1.1.123:8000
> User-Agent: curl/7.60.0
> Accept: */*
> Content-Type: text/xml; charset=UTF-8
> SOAPAction: http://tempuri.org/action/SampleSvcs.GetTestValue
> Expect: 100-continue
> Content-Length: 40
>
< HTTP/1.1 100 Continue
* We are completely uploaded and fine

任何帮助将不胜感激。谢谢。

0 个答案:

没有答案