411 Length Required - WebRequest
Hi,
Im trying to make a simple WebRequest to get some data from C# web service, in this case I'm getting a string back. It works perfect when I run the web service locally using the debug mode in VS 2005, but when the service is deployed to a server I get 411 Length required.
Any suggestions?
Thanks,
Here's the content header from the response:
{Connection: close
Content-Length: 24
Content-Type: text/html
Date: Wed, 27 Dec 2006 16:37:02 GMT
}
Below is my simple request
[CODE]
WebRequest req = WebRequest.Create("http://fdsvchn02w/Serv/Service.asmx/HelloWorld");
req.Method = "post";
WebResponse resp = req.GetResponse();
[/CODE]