我正在尝试将curl命令转换为asp.net。
如何在c#中实现它并处理json响应?
curl -i -F file=@fileToUpload.mov -F userEmail=test@gmail.com http://www.syncsketch.com/items/uploadToPlayground/
这是我期待的卷曲反应:
HTTP/1.1 100 Continue HTTP/1.1 200 OK Date: Thu, 03 Apr 2014 17:43:16 GMT Server: Apache/2.2.20 (Ubuntu) Cache-Control: max-age=0 Expires: Thu, 03 Apr 2014 17:43:16 GMT Transfer-Encoding: chunked Content-Type: application/json {"itemId": 1908, "id": 1874, "name": "4ba6295096e940ffb70b159a908044dc"}
感谢您的帮助。