为什么HTTP(S)请求不会被logging在IIS中?

我正在解决一个batch file的问题,该文件使用Wget将请求发送到在IIS 7中运行的网站。batch file运行Wget两次,第一次通过POSTlogin到站点,第二次在站点中运行一些维护代码通过一个GET。 运行batch file的服务器和托pipe站点的服务器位于同一个专用networking上。

在IIS站点日志中logging第一个POST请求。 根据Wget的输出,它似乎是多次尝试第二个GET请求 – 总共20(通常) – 但没有一个被logging。

有问题的batch file的(编辑的)内容:

wget --output-document=- --save-cookies cookies.txt --keep-session-cookies --post-data "[email protected]&Password=not-the-best-password&RememberMe=false" --no-check-certificate https://example.com/account/logon?returnurl=/ wget --output-document=- --load-cookies cookies.txt --no-check-certificate https://example.com/things/stuff/maintenance-code?x=E74B15D4-414E-468C-A340-621CC901CF1B 

Wget(标准错误)输出的一个(编辑的)示例,用于从batch file的最新执行开始的第二个GET请求的前两次尝试:

 SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc syswgetrc = C:\Program Files (x86)\GnuWin32/etc/wgetrc --2013-04-19 05:15:16-- https://example.com/things/stuff/maintenance-code?x=E74B15D4-414E-468C-A340-621CC901CF1B Resolving example.com... 172.17.21.255 Connecting to example.com|172.17.21.255|:443... connected. WARNING: cannot verify example.com's certificate, issued by `blah-blah-blah': Self-signed certificate encountered. HTTP request sent, awaiting response... Read error (No such file or directory) in headers. Retrying. --2013-04-19 05:20:21-- (try: 2) https://example.com/things/stuff/maintenance-code?x=E74B15D4-414E-468C-A340-621CC901CF1B Connecting to example.com|172.17.21.255|:443... connected. WARNING: cannot verify example.com's certificate, issued by `blah-blah-blah': Self-signed certificate encountered. HTTP request sent, awaiting response... Read error (No such file or directory) in headers. Retrying. 

还有另外一个batch file也使用了Wget,并且也运行了两次,第一次和另一个batch file一样login,第二次在站点运行一些其他的维护代码,并且通过一个GET, POST和GET请求都logging在IIS中。 Wget(标准错误)输出的编辑示例,用于获取此batch file的最新执行的GET请求:

 SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc syswgetrc = C:\Program Files (x86)\GnuWin32/etc/wgetrc --2013-04-19 06:58:50-- https://example.com/things/other-stuff/other-maintenance-code Resolving example.com... 172.17.21.255 Connecting to example.com|172.17.21.255|:443... connected. WARNING: cannot verify example.com's certificate, issued by `blah-blah-blah': Self-signed certificate encountered. HTTP request sent, awaiting response... 200 OK Length: 15 [application/json] Saving to: `STDOUT' 0K 100% 2.05M=0s 2013-04-19 06:59:06 (2.05 MB/s) - `-' saved [15/15] 

一个可能的答案是请求没有被logging,因为IIS没有收到来自站点的响应。 基于对现有问题的这个答案 IIS何时logging请求? 这肯定会是这样的。

也许Wget设置是这样的,Wget放弃五(5)分钟而不是15(这是根据Wget文档的默认设置)等待响应。