Microsoft Developer Network > 포럼 홈 > .NET Framework Networking and Communication > HttpWebRequest Date Header inclusion problem
질문하기질문하기
 

답변됨HttpWebRequest Date Header inclusion problem

  • 2006년 3월 15일 수요일 오후 12:03Edmund 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     
    I am using HTTP Web Request.  It generally works fine, but I cannot set the date Header.
    If I try to set the Header manually, I get the error;
    "This header must be modified using the appropriate property."

    The help files state the date header is set by the system but I cannot work out how to trigger its inclusion.
     
    The end result is a POST request with no date Header

    Thanks in advance

답변

  • 2006년 3월 16일 목요일 오후 7:22JonCole - MSFT중재자사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     답변됨
    The 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.

모든 응답

  • 2006년 3월 16일 목요일 오후 7:22JonCole - MSFT중재자사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     답변됨
    The 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.
  • 2007년 1월 11일 목요일 오후 9:23victorb69 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     

    is the Date Header actually being sent while using HTTPWebRequest?

    or it is empty and not sent by the system either?

  • 2007년 1월 12일 금요일 오전 9:49Edmund 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     
    No Date Header was present in my tests
  • 2007년 1월 14일 일요일 오후 1:53victorb69 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     
    thanks, 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)
  • 2007년 1월 14일 일요일 오후 1:59victorb69 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     
    Sorry, Edmund, for misspelling the name
  • 2007년 5월 30일 수요일 오전 11:59Joymach 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     

    Hi,

     

    I am facing the same problem as you guys already posted. Please help me out to solve "Date" 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.

     

    Thanks in advance.