Click here to Skip to main content
15,881,281 members

Comments by rrotstein (Top 1 by date)

rrotstein 18-Sep-16 12:00pm View    
This code is meant as a first attempt at POSTing data. I realize that it does not make much sense as a working example; my intention was to just get the POST method invoked and then build up the code.

I had tried several approaches taken from the following articles:

http://stackoverflow.com/questions/4015324/http-request-with-post
http://stackoverflow.com/questions/21051743/submit-post-request-from-codebehind-in-asp-net
http://stackoverflow.com/questions/5401501/how-to-post-data-to-specific-url-using-webclient-in-c-sharp

None of them worked.

Perhaps you could could just tell me what is a valid way to invoke a POST method directly from a browser?