Reputation: 51
I am trying to set the Date Member of System.Net.HttpWebRequest as allowed in .Net 4. in my Mono project
My project is definitely .Net 4 and I have the version 4 reference in my project but this Member seems to be missing.
Any help?
Upvotes: 1
Views: 294
Reputation: 244837
If I'm looking at the history of the mono repository right, the support for the Date
member was added to the repository a year ago. But that commit isn't in the most recent release of mono (2.10.8).
But you should be able to set it using the Headers
collection:
request.Headers["Date"] = date
Upvotes: 4