hankknight
asked on
ASP.NET/C#: HTTP Post Request
Using ASP.NET/C# I want to make an HTTP POST request.
URL: http://example.com/xyz
Method: POST
Data: {"x":"hello","y":"world"}
Header: Content-Type: application/json
This is how it is done from a Linux command line using cURL:
URL: http://example.com/xyz
Method: POST
Data: {"x":"hello","y":"world"}
Header: Content-Type: application/json
This is how it is done from a Linux command line using cURL:
curl -X POST http://example.com/xyz -d '{"x":"hello","y":"world"}' -H "Content-Type: application/json"
How can this be done using only C# for ASP.NET?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.