SuperMonster003 / AutoJs6

安卓平台 JavaScript 自动化工具 (Auto.js 二次开发项目)
https://docs.autojs6.com
Mozilla Public License 2.0
2.16k stars 653 forks source link

请问一下为什么发送http请求,返回的数据body里面只有content-type没有实际数据呢 #212

Open fjh0424 opened 6 months ago

fjh0424 commented 6 months ago

比如一个普通的get请求了百度,然后返回的数据如下,并没有看到实际有用的数据呢 有没有遇到同样情况的朋友呀?

{ "statusCode": 200, "statusMessage": "OK", "headers": { "Cache-Control": "private, no-cache, no-store, proxy-revalidate, no-transform", "Connection": "keep-alive", "Content-Type": "text/html", "Date": "Thu, 21 Dec 2023 16:23:15 GMT", "Last-Modified": "Mon, 23 Jan 2017 13:27:29 GMT", "Pragma": "no-cache", "Server": "bfe/1.0.8.18", "Set-Cookie": "BDORZ=27315; max-age=86400; domain=.baidu.com; path=/", "Transfer-Encoding": "chunked" }, "body": { "contentType": { "mediaType": "text/html", "parameterNamesAndValues": [], "subtype": "html", "type": "text" } }, "request": { "headers": { "namesAndValues": [] }, "method": "GET", "tags": {}, "url": { "host": "www.baidu.com", "isHttps": false, "password": "", "pathSegments": [ "" ], "port": 80, "scheme": "http", "url": "http://www.baidu.com/", "username": "" } }, "url": { "host": "www.baidu.com", "isHttps": false, "password": "", "pathSegments": [ "" ], "port": 80, "scheme": "http", "url": "http://www.baidu.com/", "username": "" }, "method": "GET" }