What encoding should I use for HTTP PUT?

I am writing a web server. I have implemented GET and POST (application / x-www-form-urlencoded, multipart / form-data) and this works fine.

I am thinking of adding a RESTful module to the server. So look at some of the things that are there and find out when you need to POP, MAKE, AND GET.

My question is: what encoding (application / x-www-form-urlencoded, multipart / form-data) supports PUT (according to HTTP specifications) or can it handle both?

I am trying to make the web server as standard as I can without shooting my leg.

+5
source share
2 answers

application/x-www-form-urlencoded multipart/form-data HTTP, HTML. , HTML-. HTTP , ( Content-Type) , , . , 415 Unsupported Media Type. :

+4

HTTP PUT , ( , HTTP).

+4

All Articles