Because the server side only accepts PUT method, I used method='PUT' in the HTML form. But the browser didn’t use method PUT as expected, it’s GET. When I set method='POST' it’s POST.
I don’t know why method='PUT' doesn’t work. I have tested on Chrome and Firefox.
Because the server side only accepts PUT method, I used method=’PUT’ in the HTML
Share
Browsers only support
POSTandGET, if you needPUT, you have to send the form via post/get and then do the properPUTrequest on server-side.EDIT although, most implementations of XMLHttpRequest support
PUTandDELETE.