Android开发中经常使用的Content-Type简介

1、application/x-www-form-urlencoded:最常使用的类型(默认也是这种类型),主要用于提交不带文件的post数据。

2、multipart/form-data:需要结合boundary使用,提交文件时必须使用这种类型,当不只包含文件或者不只一个文件时,使用boundary分割。

原文地址:https://www.cnblogs.com/sunzhenxing19860608/p/6098897.html