如圖所示,我在中間件使用$request->all()出現(xiàn)以上錯(cuò)誤。GET請(qǐng)求或者POST請(qǐng)求不傳參會(huì)報(bào)錯(cuò)
兩種情況:
圖二,看著像http 1.1 協(xié)議解析出現(xiàn)問題了,你可以調(diào)試一下。
1、看看完整http 協(xié)議頭是什么樣子,感覺解析出現(xiàn)問題了。
GET /test HTTP/1.1
user-agent: ApiPOST Runtime +https://www.apipost.cn
accept: /
accept-encoding: gzip, deflate, br
connection: keep-alive
Host: local.cn:8787
Content-Type: multipart/form-data; boundary=--------------------------341498516111103929360692
Content-Length: 0
POST /test HTTP/1.1
user-agent: ApiPOST Runtime +https://www.apipost.cn
accept: /
accept-encoding: gzip, deflate, br
connection: keep-alive
Host: local.cn:8787
Content-Type: multipart/form-data; boundary=--------------------------735848098272388033389979
Content-Length: 0