XHR request return 502
lhmwzy
lhmwzy at 126.com
Sun Jan 14 07:59:15 UTC 2018
When access through chrome:
Request URL:
http://10.69.124.88:8008/test/index.php?user-app-login
Request Method:
POST
Status Code:
502 Bad Gateway
Remote Address:
10.69.124.88:8008
Referrer Policy:
no-referrer-when-downgrade
Response Headersview source
Connection:
keep-alive
Content-Length:
581
Content-Type:
text/html
Date:
Sun, 14 Jan 2018 07:53:19 GMT
Server:
openresty/1.13.6.1
Request Headersview source
Accept:
*/*
Accept-Encoding:
gzip, deflate
Accept-Language:
zh-CN,zh;q=0.9
Connection:
keep-alive
Content-Length:
145
Content-Type:
application/x-www-form-urlencoded; charset=UTF-8
Cookie:
PHPSESSID=d07e10f0f2fdeaab6d4b0f60b8cee871; exam_psid=d07e10f0f2fdeaab6d4b0f60b8cee871; exam_currentuser=%25D9%25A8q%259E%25F4%25DF%25AD%259DckT%25A3%2595%25A5%25EB%25D7%25A8%25D2%25EE%25DF%25D8%25DE%2599%2595Tk%25A3l%25AA%25A8%255B%259C%25B1%258E%25AE%25DFjbgjR%25A5%25DD%25E1%25AC%25CD%25E8%25DA%25E3%25CD%25A3%25A4%25A9%259F%25A2%2596%259A%25A9%25AC%259E%25AC%259E%25AD%258E%2595bb%2591%2594%2595%25AB%25A7m%259D%25DB%25CD%25A8%25A5%2591%2593%2594%2595eh%25DD%259En%259B%25DF%259E%25A3%25D2hie%2595Rm%25EB%25A8r%259E%259B%25DF%25D8%25DF%25A3%259A%25A1%259E%2599%25A2%259A%25A9%25AC%259E%25B2%25A6%2595%259Dbh%2560%2560%255Eb%25A6%259F%255B%259F%25EC%25A6%25A4%25A0jS%25A5%2595%25A3%25A5%25E1%25DD%25A7%25CB%25EB%25DB%25E8%25DC%2599%2595Tk%25A3l%25A9%25A8%255B%259C%259B%25A7%25E6%25A6aglR%25A3%2597%25EB%25E1%25A2%25D3%25E7%25D8%25E2%25D3%2599%259F%25A6%2599%259D%2597%259A%25A9%25A2%259E%25AA%25A1%25A4%25A1ibgb%2560i%25B3%25E1s%2595%25AE%25A6%2595%25DF%2595%25A4%25A5%2599%259F%25A0%25ED%25E1%259E%25D6%25E7%25CD%25E0%25D1Rl%25A5jil%259AS%25C1%25FC_%2B%251DR%25C8%25BFTk%25A3l%25A9%25A4s%2586%25EC%25D1%25E6%25DF%2599%25A0%25A0%25A4%2599%259F%25DD%25DA%25A2%25D1%25E2%25E0%2595%25A7%2599kceag%25B1%259Fn%2596%25A9%25A3%25AE%25DFjjlR%25A3%2597%25EB%25E1%25A2%25D3%25E7%25D5%25D7%258Ek%25A4lcbl%259A%25D2i%259B%25DE%259D%25A3%25D2%2560%2597d%2596%2594%2597%25D9%25CF%259B%259A%25DD%25A0%25D5%259C%2596gb%2592h%2595%25DD%25D3q%259B%25AA%258E%25AE%25E9
Host:
10.69.124.88:8008
Origin:
http://10.69.124.88:8008
Referer:
http://10.69.124.88:8008/test/index.php?user-app-login
User-Agent:
Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36
X-Requested-With:
XMLHttpRequest
Query String Parametersview sourceview URL encoded
user-app-login:
Form Dataview sourceview URL encoded
args[username]:lhm
args[userpassword]:
123456
userlogin:
1
userhash:
0.29749395570341153
userhash:
0.4738217323310716
return 502 Bad Gateway
----------
access by curl:
curl "http://10.69.124.88:8008/test/index.php?user-app-login" -H "Cookie: PHPSESSID=d07e10f0f2fdeaab6d4b0f60b8cee871; exam_psid=d07e10f0f2fdeaab6d4b0f60b8cee871; exam_currentuser=^%^25D9^%^25A8q^%^259E^%^25F4^%^25DF^%^25AD^%^259DckT^%^25A3^%^2595^%^25A5^%^25EB^%^25D7^%^25A8^%^25D2^%^25EE^%^25DF^%^25D8^%^25DE^%^2599^%^2595Tk^%^25A3l^%^25AA^%^25A8^%^255B^%^259C^%^25B1^%^258E^%^25AE^%^25DFjbgjR^%^25A5^%^25DD^%^25E1^%^25AC^%^25CD^%^25E8^%^25DA^%^25E3^%^25CD^%^25A3^%^25A4^%^25A9^%^259F^%^25A2^%^2596^%^259A^%^25A9^%^25AC^%^259E^%^25AC^%^259E^%^25AD^%^258E^%^2595bb^%^2591^%^2594^%^2595^%^25AB^%^25A7m^%^259D^%^25DB^%^25CD^%^25A8^%^25A5^%^2591^%^2593^%^2594^%^2595eh^%^25DD^%^259En^%^259B^%^25DF^%^259E^%^25A3^%^25D2hie^%^2595Rm^%^25EB^%^25A8r^%^259E^%^259B^%^25DF^%^25D8^%^25DF^%^25A3^%^259A^%^25A1^%^259E^%^2599^%^25A2^%^259A^%^25A9^%^25AC^%^259E^%^25B2^%^25A6^%^2595^%^259Dbh^%^2560^%^2560^%^255Eb^%^25A6^%^259F^%^255B^%^259F^%^25EC^%^25A6^%^25A4^%^25A0jS^%^25A5^%^2595^%^25A3^%^25A5^%^25E1^%^25DD^%^25A7^%^25CB^%^25EB^%^25DB^%^25E8^%^25DC^%^2599^%^2595Tk^%^25A3l^%^25A9^%^25A8^%^255B^%^259C^%^259B^%^25A7^%^25E6^%^25A6aglR^%^25A3^%^2597^%^25EB^%^25E1^%^25A2^%^25D3^%^25E7^%^25D8^%^25E2^%^25D3^%^2599^%^259F^%^25A6^%^2599^%^259D^%^2597^%^259A^%^25A9^%^25A2^%^259E^%^25AA^%^25A1^%^25A4^%^25A1ibgb^%^2560i^%^25B3^%^25E1s^%^2595^%^25AE^%^25A6^%^2595^%^25DF^%^2595^%^25A4^%^25A5^%^2599^%^259F^%^25A0^%^25ED^%^25E1^%^259E^%^25D6^%^25E7^%^25CD^%^25E0^%^25D1Rl^%^25A5jil^%^259AS^%^25C1^%^25FC_^%^2B^%^251DR^%^25C8^%^25BFTk^%^25A3l^%^25A9^%^25A4s^%^2586^%^25EC^%^25D1^%^25E6^%^25DF^%^2599^%^25A0^%^25A0^%^25A4^%^2599^%^259F^%^25DD^%^25DA^%^25A2^%^25D1^%^25E2^%^25E0^%^2595^%^25A7^%^2599kceag^%^25B1^%^259Fn^%^2596^%^25A9^%^25A3^%^25AE^%^25DFjjlR^%^25A3^%^2597^%^25EB^%^25E1^%^25A2^%^25D3^%^25E7^%^25D5^%^25D7^%^258Ek^%^25A4lcbl^%^259A^%^25D2i^%^259B^%^25DE^%^259D^%^25A3^%^25D2^%^2560^%^2597d^%^2596^%^2594^%^2597^%^25D9^%^25CF^%^259B^%^259A^%^25DD^%^25A0^%^25D5^%^259C^%^2596gb^%^2592h^%^2595^%^25DD^%^25D3q^%^259B^%^25AA^%^258E^%^25AE^%^25E9" -H "Origin: http://10.69.124.88:8008" -H "Accept-Encoding: gzip, deflate" -H "Accept-Language: zh-CN,zh;q=0.9" -H "User-Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36" -H "Content-Type: application/x-www-form-urlencoded; charset=UTF-8" -H "Accept: */*" -H "Referer: http://10.69.124.88:8008/test/index.php?user-app-login" -H "X-Requested-With: XMLHttpRequest" -H "Connection: keep-alive" --data "args^%^5Busername^%^5D=^%^E5^%^88^%^98^%^E6^%^B4^%^AA^%^E6^%^98^%^8E^&args^%^5Buserpassword^%^5D=123456^&userlogin=1^&userhash=0.41284224765651256^&userhash=0.0678490920620114" --compressed
the return is OK:
{"statusCode":300,"errorinput":"args[username]","message":"\u767b\u5f55\u5931\u8d25\uff0c\u56e0\u4e3a\u7528\u6237\u540d\u4e0d\u5b58\u5728"}
cat unit.log:
2018/01/14 15:32:31 [notice] 15142#34366357696 module: php 7.0.26 "build/php70.unit.so"
2018/01/14 15:32:31 [info] 15143#34366357696 controller started
2018/01/14 15:32:31 [notice] 15141#34366357696 process 15142 exited with code 0
2018/01/14 15:32:31 [info] 15144#34366357696 router started
2018/01/14 15:32:36 [info] 15146#34366357696 "blog" application started
2018/01/14 15:32:36 [info] 15146#34366357696 (non ABS_MODE) php root: "/home/www"
2018/01/14 15:33:41 [info] 15147#34366357696 "blog" application started
2018/01/14 15:33:41 [info] 15147#34366357696 (non ABS_MODE) php root: "/home/www"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/unit/attachments/20180114/8600aad3/attachment.html>
More information about the unit
mailing list