1
Reply

Implement a cURL command in C#

Opariti

Opariti

Apr 20 2016 10:39 AM
511
Hi,
I have the following cURL command line with authentication, POST parameters and file upload:
 
curl -k -H "Authorization: Token token=alibaba" -X POST -F "one[param1_id]=01" -F "two[param2_id]=method:bingo,key:client_license" -F "files[0]"=@my_file.wav https://webservicesite/jobs 
 
I would like to have a class code example, using either HttpClient, or HttpWebRequest classes so that to implement this command in C#.
Thanks! 

Answers (1)