Link to home
Start Free TrialLog in
Avatar of hankknight
hankknightFlag for Canada

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:
curl -X POST http://example.com/xyz -d '{"x":"hello","y":"world"}' -H "Content-Type: application/json"

Open in new window

How can this be done using only C# for ASP.NET?
ASKER CERTIFIED SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial