没有得到IIS服务器的回复

时间:2015-10-02 23:50:53

标签: apache perl iis curl cgi

我正在尝试将perl cgi脚本从apache迁移到IIS。 当我将数据发布到URL时,我无法得到回复..我应该如何调试/修复它?

  

在IIS上托管 - 无法正常工作

*
    XYZ-MacBook-Pro:Desktop XYZ$ curl -v -X POST -d@data.json "http://ABC-q888gab4.cloudapp.net:1234/dseb/ecws.pl" -m 5
    * Hostname was NOT found in DNS cache
    *   Trying ***.***.***.*** ...
    * Connected to ABC-q888gab4.cloudapp.net (***.***.*.* ) port 1234 (#0)
    > POST /dseb/ecws.pl HTTP/1.1
    > User-Agent: curl/7.37.1
    > Host: ABC-q888gab4.cloudapp.net:1234
    > Accept: */*
    > Content-Length: 388
    > Content-Type: application/x-www-form-urlencoded
    > 
    * upload completely sent off: 388 out of 388 bytes
    * Operation timed out after 5005 milliseconds with 0 bytes received
    * Closing connection 0
    curl: (28) Operation timed out after 5005 milliseconds with 0 bytes received
  

主持Apache -Working Fine

    curl -v -X POST -d "sad" http://<Some-IP>:6421/cgi-bin
/ECWS/ECWS.pl
* About to connect() to <Some-IP> port 6421 (#0)
*   Trying <Some-IP>...
* connected
* Connected to <Some-IP> (<Some-IP>) port 6421 (#0)
> POST /cgi-bin/ECWS/ECWS.pl HTTP/1.1
> User-Agent: curl/7.28.1
> Host: <Some-IP>:6421
> Accept: */*
> Content-Length: 3
> Content-Type: application/x-www-form-urlencoded
>
* upload completely sent off: 3 out of 3 bytes
< HTTP/1.1 200 OK
< Date: Fri, 02 Oct 2015 23:17:29 GMT
< Server: Apache/2.2.15 (Red Hat)
< Content-Length: 0
< Connection: close
< Content-Type: text/html; charset=ISO-8859-1
<
* Closing connection #0

0 个答案:

没有答案