is application/x-www-form-urlencoded default for html form?

前端 未结 3 843
挽巷
挽巷 2020-12-14 06:44

I found out that HTML form supports only two enctype types. They are application/x-www-form-urlencoded and multipart/form-data. I understand that I

3条回答
  •  情歌与酒
    2020-12-14 07:05

    Yes, it is. Here's a cite from the W3 HTML forms specification:

    The default value for this attribute is "application/x-www-form-urlencoded". The value "multipart/form-data" should be used in combination with the INPUT element, type="file".

    The webbrowser will take care about URL encoding automatically.

提交回复
热议问题