0
使用PHP-FPM + Nginx 运行PHP获取不到自定义HEADER
使用PHP-FPM + Nginx 运行PHP获取不到客户端传的自定义HEADER, 再抓包工具里面有抓到header。 但是PHP里面却获取不到。
GET /api/v1/users/order/list?page=1&pre_page=20&status=1%2C5&type=1 HTTP/1.1^M
Host: 127.0.0.1^M
Accept: */*^M
system_version: 10.3.1^M
app_version: 1.0.0^M
X-REQUESTED-WITH: 1^M
Accept-Language: zh-cn^M
system_platform: iOS^M
Accept-Encoding: gzip^M
Content-Type: application/json^M
User-Agent: (iPhone; iOS 10.3.1; Scale/3.00)^M
Connection: keep-alive^M
Recommend
相关搜索关键词
Recent search keywords
- znsfs
- ZNS
- Scalar size does not match
- 超星学习通
- httpsonlineschoolal5com99214
- skillz
- JCMM
- 垃圾场
- monitoro.co
- monitoro
- insta
- -1 OR 3 422-422-1=0 0 0 1
- font_heading
- pretzelai
- Hackintosh
- A52S
- UPDATE ROM AC8227L - Android JCAC10003-OC2-V1.0.04R7-211119_1742
- -1 OR 3+422-422-1=0+0+0+1
- The Path to Reliability: How a QA Engineer Should Act in Non-Standard Situations
- -1 or 3 446-446-1=0 0 0 1 --
- WRP Android Video Player Pro" AND 7796=9605 AND "BfKb"="BfKb
- wrp android video player pro and 8553=8553-- woed
- AJG LONDON LTD
- All blooks in blocker
- fatbobman
- 5200L
- supermarket HTB
- netherlands
- https://m.youtube.com/watch?v=XylKubQFAkw#
- python数据处理
- moto
- MTK 8227L Android download
- w89941
- gold quest blooket
- gold quest
- Phoneinfoga
- Instrukcja
- nvst.ly
- nvstly
- trade hub
- madagascar
- smartos
- omnios
- 快
- proxy list.txt
- All blooket
- watch hentai app
- hentai stream app apk android
- hentai stream
- ssl pterodactyl
- BACKGROUND REMOVER
- code.daypilot.org
- drops
- YT9217B
- Loil
- 教你做任务之
- antranigv.am
- 转盘
- fbi
- 下列何者可能是黃禹錫造假研究成果的原因
- gaminator
- 程序员
- -1 OR 3+789-789-1=0+0+0+1 --
- @@flq3T
- glizzy
- wrp android video player pro) and 5868=4380-- htou
- fishy frenzy
- -1 or 2+47-47-1=0+0+0+1
- GitHub - glixzzy/blooket-hack: Multiple hacks that breaks the game
- 1050
- fx
- golden
- gloadal
- all the answers
- best kodi live tv
- spreadsho[
- gift
- -1" OR 3+854-854-1=0+0+0+1 --
- -1 OR 2+930-930-1=0+0+0+1
- truenas
- Automotive Lubricants Market
- keywords+AND+7652=7652
- 5767
- 盗刷信用卡商店
- virtual))) OR NOT 1220=3959#
- kahoot hack
- -1 or 3+446-446-1=0+0+0+1 --
- cabinet+maker+in+australia
- blooket+market+infininty+conis
- virtual or not 9584=4739
- cabinet maker in australia
- -1 or 2+786-786-1=0+0+0+1 --
- ketfgb0j
- download230413-2+32+13.rar
- 230413-2+32+13.rar
- chapter 20 samsung pt 2
- chapter 20 samsung
- greek iptv and 5423=5004-- xcpg
- https://www.ongraph.com/hire-nodejs-developers/
- keywords AND 7652=7652
用getallheaders试试看。
试了下使用Apache用apache_request_headers是能获取到的。
header里面不能用下划线,高版本的Nginx应该不会传给PHP-FPM, 用-代替
header命名是有规范的。 自定义的最好使用X-User-Type这种以X开始的header,与Cookie这些http协议里面的header做区分。
自定义header 查看下 https://stackoverflow.com/questions/3561381/custom-http-headers-naming-conventions