2011-10-09 79 views
0

为什么IIS不返回文件的上次修改时间日期?检查最后修改远程文件的头在IIS情况下

Array (
    [headers] => Array (
     [Date] => Sun, 09 Oct 2011 08:57:43 GMT 
     [Server] => Microsoft-IIS/6.0 
     [X-Powered-By] => ASP.NET 
     [X-AspNet-Version] => 2.0.50727 
     [Location] => /home.aspx 
     [Cache-Control] => private 
     [Content-Type] => text/html; charset=iso-8859-1 
     [Content-Length] => 129 
    ) 
    [info] => Array (
     [url] => http://www.adleradelboden.ch/webcam/Adler000.JPG 
     [content_type] => text/html; charset=iso-8859-1 
     [http_code] => 302 
     [header_size] => 250 
     [request_size] => 220 
     [filetime] => -1 
     [ssl_verify_result] => 0 
     [redirect_count] => 0 
     [total_time] => 0.077872 
     [namelookup_time] => 0.041748 
     [connect_time] => 0.058456 
     [pretransfer_time] => 0.058463 
     [size_upload] => 0 
     [size_download] => 129 
     [speed_download] => 1656 
     [speed_upload] => 0 
     [download_content_length] => 129 
     [upload_content_length] => 0 
     [starttransfer_time] => 0.077829 
     [redirect_time] => 0 
     [certinfo] => Array () 
    ) 
    [curl_handle] => Resource id #5 
) 

回答

1

http://www.adleradelboden.ch/webcam/Adler000.JPG响应头:

HTTP/1.1 200 OK 
Content-Length: 59080 
Content-Type: image/jpeg 
Last-Modified: Sun, 09 Oct 2011 09:32:42 GMT 
Accept-Ranges: bytes 
ETag: "d7df1646686cc1:d2487" 
Server: Microsoft-IIS/6.0 
X-Powered-By: ASP.NET 
Date: Sun, 09 Oct 2011 09:40:24 GMT 

有Last-Modified头。

您还没有向我们展示如何获取此信息。但通过查看您收到的标题,有Location标题,因此您的请求正在被重定向。你应该设置卷曲以遵循位置

相关问题