I\'m having problems with sending POST request in C# and it seems I misunderstood some HTTP basics. So basically I\'m implementing RESTfull service client, whic
Moving Headers before the request steam works (as per AI W's comment), because the request stream is adding the body.
The way webrequest is implemented internally, you need to finish the header before writing body, and once its in stream format, its ready to send.
If you look at the implementation of webrequest in reflector or some such decompiling tool, you'll be able to see the logic.
Hope this helps