HttpWebRequest Date Header inclusion problem<div style="padding-right:5px;padding-left:5px">I am using HTTP Web Request.  It generally works fine, but I cannot set the date Header.<br>If I try to set the Header manually, I get the error;<br>&quot;This header must be modified using the appropriate property.&quot;<br><br>The help files state the date header is set by the system but I cannot work out how to trigger its inclusion.</div> <div style="padding-right:5px;padding-left:5px"> </div> <div style="padding-right:5px;padding-left:5px">The end result is a POST request with no date Header<br><br>Thanks in advance</div>© 2009 Microsoft Corporation. All rights reserved.Thu, 19 Jun 2008 00:15:52 Zdba65027-3fb8-42ec-83e8-90bd77c42ca3http://social.msdn.microsoft.com/Forums/en-US/netfxnetcom/thread/dba65027-3fb8-42ec-83e8-90bd77c42ca3#dba65027-3fb8-42ec-83e8-90bd77c42ca3http://social.msdn.microsoft.com/Forums/en-US/netfxnetcom/thread/dba65027-3fb8-42ec-83e8-90bd77c42ca3#dba65027-3fb8-42ec-83e8-90bd77c42ca3Edmundhttp://social.msdn.microsoft.com/Profile/en-US/?user=EdmundHttpWebRequest Date Header inclusion problem<div style="padding-right:5px;padding-left:5px">I am using HTTP Web Request.  It generally works fine, but I cannot set the date Header.<br>If I try to set the Header manually, I get the error;<br>&quot;This header must be modified using the appropriate property.&quot;<br><br>The help files state the date header is set by the system but I cannot work out how to trigger its inclusion.</div> <div style="padding-right:5px;padding-left:5px"> </div> <div style="padding-right:5px;padding-left:5px">The end result is a POST request with no date Header<br><br>Thanks in advance</div>Wed, 15 Mar 2006 12:03:10 Z2006-03-16T19:22:12Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxnetcom/thread/dba65027-3fb8-42ec-83e8-90bd77c42ca3#a24d21bc-7b99-48d9-b352-6e3886427e32http://social.msdn.microsoft.com/Forums/en-US/netfxnetcom/thread/dba65027-3fb8-42ec-83e8-90bd77c42ca3#a24d21bc-7b99-48d9-b352-6e3886427e32JonCole - MSFThttp://social.msdn.microsoft.com/Profile/en-US/?user=JonCole%20-%20MSFTHttpWebRequest Date Header inclusion problemThe current implementation doesn't allow you to add this header to the request.  We will consider removing this restriction for the next release of the product.Thu, 16 Mar 2006 19:22:08 Z2006-03-16T19:22:12Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxnetcom/thread/dba65027-3fb8-42ec-83e8-90bd77c42ca3#f63c1a47-8a2a-4c04-8206-ca91ae24f57dhttp://social.msdn.microsoft.com/Forums/en-US/netfxnetcom/thread/dba65027-3fb8-42ec-83e8-90bd77c42ca3#f63c1a47-8a2a-4c04-8206-ca91ae24f57dvictorb69http://social.msdn.microsoft.com/Profile/en-US/?user=victorb69HttpWebRequest Date Header inclusion problem<p>is the Date Header actually being sent while using HTTPWebRequest? </p> <p>or it is empty and not sent by the system either?</p>Thu, 11 Jan 2007 21:23:36 Z2007-01-11T21:23:36Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxnetcom/thread/dba65027-3fb8-42ec-83e8-90bd77c42ca3#9d27517c-7e26-403a-8cab-9ec08356cacfhttp://social.msdn.microsoft.com/Forums/en-US/netfxnetcom/thread/dba65027-3fb8-42ec-83e8-90bd77c42ca3#9d27517c-7e26-403a-8cab-9ec08356cacfEdmundhttp://social.msdn.microsoft.com/Profile/en-US/?user=EdmundHttpWebRequest Date Header inclusion problemNo Date Header was present in my testsFri, 12 Jan 2007 09:49:49 Z2007-01-12T09:49:49Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxnetcom/thread/dba65027-3fb8-42ec-83e8-90bd77c42ca3#de84adb1-5f75-41d4-9406-af118b9d9baehttp://social.msdn.microsoft.com/Forums/en-US/netfxnetcom/thread/dba65027-3fb8-42ec-83e8-90bd77c42ca3#de84adb1-5f75-41d4-9406-af118b9d9baevictorb69http://social.msdn.microsoft.com/Profile/en-US/?user=victorb69HttpWebRequest Date Header inclusion problemthanks, Edvard. in my tests either. to my understanding this is not resolvable on HTTP level and Microsoft is not gonna do anything about this? Seems the only solutionis to use TCPIPClient and SSLStream (in case of a secured socket)Sun, 14 Jan 2007 13:53:58 Z2007-01-14T13:53:58Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxnetcom/thread/dba65027-3fb8-42ec-83e8-90bd77c42ca3#8373ead6-e174-46fe-aadb-c7875a47a9c7http://social.msdn.microsoft.com/Forums/en-US/netfxnetcom/thread/dba65027-3fb8-42ec-83e8-90bd77c42ca3#8373ead6-e174-46fe-aadb-c7875a47a9c7victorb69http://social.msdn.microsoft.com/Profile/en-US/?user=victorb69HttpWebRequest Date Header inclusion problemSorry, Edmund, for misspelling the nameSun, 14 Jan 2007 13:59:20 Z2007-01-14T13:59:20Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxnetcom/thread/dba65027-3fb8-42ec-83e8-90bd77c42ca3#f00e077e-c15e-4dfc-81e7-e48986330bd6http://social.msdn.microsoft.com/Forums/en-US/netfxnetcom/thread/dba65027-3fb8-42ec-83e8-90bd77c42ca3#f00e077e-c15e-4dfc-81e7-e48986330bd6Joymachhttp://social.msdn.microsoft.com/Profile/en-US/?user=JoymachHttpWebRequest Date Header inclusion problem<p>Hi,</p> <p> </p> <p>I am facing the same problem as you guys already posted. Please help me out to solve &quot;Date&quot; header problem for WebRequest object or guide me if you have any workaround/alternative for this problem. It is a MUST field for my application and I am badly in need of response.</p> <p> </p> <p>Thanks in advance.</p>Wed, 30 May 2007 11:59:11 Z2007-05-30T11:59:11Z