[英]Get Creation Date of a file on the web
I know this question was already asked here: Get File Creation Date Over HTTP 我知道这里已经问过这个问题: 通过HTTP获取文件创建日期
BUT, I didn't get the answer needed. 但是,我没有得到所需的答案。 I don't want to get the "Last Modified" date.
我不想获得“上次修改”日期。 Instead I want the creation date.
相反,我想要创建日期。
The following code gets me the last modified date from the headers. 以下代码从标题获取我的最后修改日期。
Dim request As System.Net.HttpWebRequest = DirectCast(WebRequest.Create("http://10.20.80.111/mobilepayment/myfile.crt"), System.Net.HttpWebRequest)
Dim lastmodified As String
Using response As WebResponse = request.GetResponse()
lastmodified = response.Headers("last-modified").ToString()
End Using
Is there a way I can get the creation date? 有什么办法可以获取创建日期? please help!
请帮忙!
No, in plain HTTP there is no standard header field for that. 不,在纯HTTP中没有标准的标头字段。
(WebDAV does have a property for it, though: http://greenbytes.de/tech/webdav/rfc4918.html#PROPERTY_creationdate ) (不过,WebDAV确实具有其属性: http : //greenbytes.de/tech/webdav/rfc4918.html#PROPERTY_creationdate )
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.