Reputation: 15
I know this question was already asked here: Get File Creation Date Over 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!
Upvotes: 0
Views: 1542
Reputation: 42017
No, in plain HTTP there is no standard header field for that.
(WebDAV does have a property for it, though: http://greenbytes.de/tech/webdav/rfc4918.html#PROPERTY_creationdate)
Upvotes: 1