Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > How to set the ContentEncoding of the HTTPWebRequest object

Reply
Thread Tools

How to set the ContentEncoding of the HTTPWebRequest object

 
 
=?Utf-8?B?UGF1bCBQaGlsbGlwcw==?=
Guest
Posts: n/a
 
      06-23-2006
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
 
Reply With Quote
 
 
 
 
Winista
Guest
Posts: n/a
 
      06-23-2006
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...tEncoding.aspx


"Paul Phillips" <> wrote in message
news:0307F1ED-5520-477D-AAA7-...
> 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



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
set dynamicly request.contentencoding Allaigre David ASP General 1 07-28-2004 02:19 PM
Set Request.ContentEncoding from code? Ricky K. Rasmussen ASP .Net 8 05-28-2004 04:17 AM
Different encodings problem: What does setting Request.ContentEncoding do? Per Bolmstedt ASP .Net 0 03-03-2004 01:46 PM
Response.CharSet Vs Response.ContentEncoding Vs responseEncoding property in web.Config Calvin Lai ASP .Net 6 12-31-2003 06:55 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57