How can we upload the file using http post?
I am using HTTP API called HttpClient to upload the file using "post", but haven't been able to find any sample code for the same.
Any ideas? Any examples/implementations?
Edit:-
I meant HTTP API called H开发者_运维知识库ttpClient - See "Consuming RESTful Services with HttpClient" here
You meant WebClient
? Try this sample: Download And Upload A File Using C#
EDIT: Try this post: Upload file with REST
精彩评论