摘要: 转自https://segmentfault.com/a/1190000006871099 contentType是指http/https发送信息至服务器时的内容编码类型,contentType用于表明发送数据流的类型,服务器根据编码类型使用特定的解析方式,获取数据流中的数据。内容编码类型的作用,有 阅读全文
posted @ 2018-04-02 18:22 Youngly 阅读(3313) 评论(0) 推荐(0) 编辑
摘要: 转自https://blog.csdn.net/u010197591/article/details/51441399 以下4种分别可发送get和post请求的方法, 第1种:HttpURLConnection 第2种:URLConnection 第3种:HttpClient 第4种:Socket 阅读全文
posted @ 2018-04-02 16:41 Youngly 阅读(398) 评论(0) 推荐(0) 编辑