带参数的http get 请求
/test/demo_form.php?name1=value1&name2=value2
有一个请求:
POST /api/sysapi/p_sysapi1097?timetype=6&market=ALL HTTP/1.1
Host: webapi.cninfo.com.cn
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0
Accept: */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
mcode: MTY3NzY0NjUwNQ==
X-Requested-With: XMLHttpRequest
Origin: http://webapi.cninfo.com.cn
Connection: keep-alive
Referer: http://webapi.cninfo.com.cn/
Cookie: Hm_lvt_489bd07e99fbfc5f12cbb4145adb0a9b=1677284770,1677395144,1677465204,1677632900; Hm_lpvt_489bd07e99fbfc5f12cbb4145adb0a9b=1677646505
Cache-Control: max-age=0
Content-Length: 0
问题:
这个请求是post请求,但是看这里,timetype=6&market=ALL ,又像是get 请求呢?
HTTP 规范 没有规定 POST 不可以有查询参数
带上参数的URL,包括它们的查询字符串部分,常是用于定位资源的,以限制当前请求的范围