I’d like to make a following curl call in C#:
curl "http://localhost:8983/solr/update/extract?literal.id=doc1&commit=true" -F "myfile=@tutorial.html"
I found that I should use WebRequest class, but I’m still not sure how deal with this part:
-F "myfile=@tutorial.html"
The code snippet from http://msdn.microsoft.com/en-us/library/debx8sh9.aspx shows how to send POST data using the WebRequest class: