网络请求okHttp
# http.get()
# http.post('http://www.baidu.com',new map().add('a','1'))
# http.postForm('http://www.baidu.com','a=1&b=2&c='+encodeURIComponent('中文'))
# http.json('http://www.baidu.com',json)
# http.uploadFile('http://www.baidu.com','file','/sdcard/1.jpg',fromData)
# http.setTimeOut(0,0,0)
# http.setHeader('','')
# http.clearHeader()
# http.getResponseHeaders()
# http.downloadFile('http://www.baidu.com/1.zip','/sdcard/1.zip')
# http.setCharSet('UTF-8')
# http.setCookie('','')
# http.getCookie()
上次更新: 2024/11/06, 21:21:50