I have some C# stubs to a Java web service (Https) (created in Visual Studio 2008, .NET 2.0). The server does not allow requests to be chunked. I was able to set sendChunked to false in the HttpWebRequest.
When I call web service methods which have very little data going across the wire they work fine.
However, when I send requests which contain a significant amount of data, I get an "unable to parse request" error.
Here's the two strange things:
- This works fine through Java by setting the HttpConstants.CHUNKED to false, and if you don't do that it breaks with the same "Unable to parse request error".
- If I have fiddler running in the background everything works fine?! I believe this is due to Fiddler buffering the request bytes before sending them off. NOTE: if I turn off the Fiddler option to "Decrypt HTTPS" it stops working.