Update PostRequest.cs

Thanks for the sample code. It seemed to have a couple of bugs in it however - these changes made it work for me at least. Hope this helps someone else!