Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > Setting Content-Length Header for HTTP 204?

Reply
Thread Tools

Setting Content-Length Header for HTTP 204?

 
 
Eric
Guest
Posts: n/a
 
      10-20-2004
Hello,

Can someone help out with forcing the Content-Length header to 0 when
returning an HTTP 204 with NO body (working in a WSE2.0 web service) I can't
seem to gain access to the Content-Length Header

I'm trying the following:
HttpResponse httpResponse = Context.Response;
httpResponse.AppendHeader("Content-Length", z.ToString());
httpResponse.StatusCode = i;
httpResponse.Flush();
Seems that there is an override behavior somewhere outside of the WebMethod
that is stripping out the content-Length header.

-thanks!
 
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
Header files with "header.h" or <header.h> ?? mlt C++ 2 01-31-2009 02:54 PM
setting Expires HTTP response header Mark Volkmann Ruby 2 07-17-2005 02:36 PM
CGI.PM not setting HTTP header Mark Perl Misc 14 11-26-2004 07:15 AM
Setting HTTP Header Attributes Eric ASP .Net Web Services 1 08-25-2004 05:03 PM
How to Remove Http header from http response Vivek Mehta XML 3 08-12-2004 02:02 AM



Advertisments