简体   繁体   中英

webclient upload file methods

It seems that webclient supports PUT and POST uploading. Is there any difference?

Yes, one sends a PUT to the server, one sends a POST . In theory, PUT means "enclosed entity [should] be stored under the supplied Request-URI", and POST means "the entity enclosed in the request [i]sa new subordinate of the resource identified by the Request-URI"

But in practice, it's up to the server what to do.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM