在HTTP中有两种POST数据的方式:application/x-www-form-urlencoded和multipart/form-data.据我所知,大多数浏览器只能在使用时上传文件multipart/form-data.在API上下文中使用其中一种编码类型时是否有任何其他指导(不涉及浏览器)?这可能基于:
application/x-www-form-urlencoded
multipart/form-data
到目前为止,我基本上没有在网上找到有关使用不同内容类型的正式指导.
post http http-headers
http ×1
http-headers ×1
post ×1