Send Post Request from Windows Form C#

Viewed 10376

Currently I pass information to a Web API through the curl command as below:

curl -d 'info={ "EmployeeID": [ "1234567", "7654321" ], "Salary": true, "BonusPercentage": 10}' http://example.com/xyz/php/api/createjob.php

This will return me another URL to the API posting all the information here over there:

http://example.com/xyz#newjobapi:id=19

I am trying to replicate this process through a C# Windows form where in users will enter the required information and once they submit, they should get the returned URL.

I have already created the interface for users to enter this information. But i am not sure how to post this info to the Web API and get the generated url

Is there any library that i can use to replicate the above curl process through Windows Form??

1 Answers
Related