Click here to Skip to main content
14,661,175 members
Rate this:
Please Sign up or sign in to vote.
I have created the handler application using c# and these handlers are being accessed by the some source for e.g (Abc.ashx?id=0). So here I was returning the status code in response but some other extra headers were being sent along with the status code.

I have gone through the links over the stack-overflow for the solution and got able to remove some of the headers from the resposne.

Earlier the Response were containing below headers:-
HTTP/1.1 200 OK
Cache-Control: no-cache
Pragma: no-cache
Content-Type: text/plain; charset=utf-8
Expires: -1
Server: Microsoft-IIS/7.5
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Mon, 31 Mar 2014 07:42:13 GMT
Content-Length: 12

Now after trying some solution here is the new response:-
HTTP/1.1 200 OK
Transfer-Encoding: chunked
Date: Mon, 31 Mar 2014 07:45:48 GMT

My requirement here is to send only Status code in the response.

So I would like to remove/hide "Date" and "Transfer-Encoding" from the response if that is possible.

Thanks in advance for any help.
Posted
Updated 28-Apr-14 1:39am
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100