This project is read-only.

Change HTTP Header

Topics: faq
Sep 18, 2009 at 10:55 PM

Hi Guys

Have a method to add or modify the HTTP Header?

I want add this two informations:

 

Content-Lenght

and

Content-Type

 

Thanks in advance for your help

Sep 19, 2009 at 11:31 PM

problem Solved :-)

 

IHttpResponse response = request.CreateResponse(context);
........

response.ContentType = "text/xml; charset=ISO-8859-1";
response.Body.Write(body, 0, body.Length);
response.Send();

 

i Hope is useful ;-)

 

Sep 29, 2009 at 3:50 AM

me too, thanks