How to set the ContentEncoding of the HTTPWebRequest object

Discussion in 'ASP .Net' started by =?Utf-8?B?UGF1bCBQaGlsbGlwcw==?=, Jun 23, 2006.

  1. Has anyone been able or is having trouble with setting the Content-Encoding
    to a value in the headers collection of an HTTPWebRequest object.

    I am trying to post a RosettaNet message to a trading partner that is using
    webMethods server. The message gets to their server just fine but it is not
    processing. They are telling me that the $contentEncoding has a value of
    NULL. They are telling me that this is part of the Header information. I
    have looked up the header property info on MSDN but I don't see anything
    mentioned of setting the ContentEncoding.

    Any one have suggestions.

    Thanks,

    Paul
     
    =?Utf-8?B?UGF1bCBQaGlsbGlwcw==?=, Jun 23, 2006
    #1
    1. Advertising

  2. =?Utf-8?B?UGF1bCBQaGlsbGlwcw==?=

    Winista Guest

    You will have to add this header in the collection of headers.

    some thing like..

    obRequest.Headers.Add("Conent-Encoding", "gzip");

    You can see an example in this article. This sets "Accepts encoding" header.

    http://www.netomatix.com/Development/HttpContentEncoding.aspx


    "Paul Phillips" <> wrote in message
    news:...
    > Has anyone been able or is having trouble with setting the
    > Content-Encoding
    > to a value in the headers collection of an HTTPWebRequest object.
    >
    > I am trying to post a RosettaNet message to a trading partner that is
    > using
    > webMethods server. The message gets to their server just fine but it is
    > not
    > processing. They are telling me that the $contentEncoding has a value of
    > NULL. They are telling me that this is part of the Header information. I
    > have looked up the header property info on MSDN but I don't see anything
    > mentioned of setting the ContentEncoding.
    >
    > Any one have suggestions.
    >
    > Thanks,
    >
    > Paul
     
    Winista, Jun 23, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Calvin Lai
    Replies:
    6
    Views:
    20,984
    Joerg Jooss
    Dec 31, 2003
  2. =?Utf-8?B?RXJpayBKZW5zZW4=?=

    Filling in HttpWebRequest object with form data

    =?Utf-8?B?RXJpayBKZW5zZW4=?=, Feb 11, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    5,508
    bruce barker
    Feb 11, 2004
  3. Per Bolmstedt
    Replies:
    0
    Views:
    433
    Per Bolmstedt
    Mar 3, 2004
  4. Ricky K. Rasmussen

    Set Request.ContentEncoding from code?

    Ricky K. Rasmussen, May 11, 2004, in forum: ASP .Net
    Replies:
    8
    Views:
    6,208
    Steven Cheng[MSFT]
    May 28, 2004
  5. Allaigre David

    set dynamicly request.contentencoding

    Allaigre David, Jul 28, 2004, in forum: ASP General
    Replies:
    1
    Views:
    216
    Egbert Nierop \(MVP for IIS\)
    Jul 28, 2004
Loading...

Share This Page