fastcgi 环境变量例子
例如请求的url
http://172.28.250.184:8099/aa.php?var=ccccc&value=bbbbbb
前两个字节分别代表 变量名长度 和 变量值长度。
0x0f0x0fSCRIPT_FILENAME/scripts/aa.php0x0c0x16QUERY_STRINGvar=ccccc&value=bbbbbb0x0e0x03REQUEST_METHODGET0x0c0x00CONTENT_TYPE0x0e0x00CONTENT_LENGTH0x0b0x07SCRIPT_NAME/aa.php0x0b0x1eREQUEST_URI/aa.php?var=ccccc&value=bbbbbb0x0c0x07DOCUMENT_URI/aa.php0x0d-DOCUMENT_ROOT/home/wwwuser/liuyi/nginx.1.12.1/install/html0x0f0x08SERVER_PROTOCOLHTTP/1.10x0e0x04REQUEST_SCHEMEhttp0x110x07GATEWAY_INTERFACECGI/1.10x0f0x0cSERVER_SOFTWAREnginx/1.12.10x0b0x0eREMOTE_ADDR192.168.22.1030x0b0x04REMOTE_PORT26840x0b0x0eSERVER_ADDR172.28.250.1840x0b0x04SERVER_PORT80990x0b0x09SERVER_NAMElocalhost0x0f0x03REDIRECT_STATUS2000x090x13HTTP_HOST172.28.250.184:80990x0fAHTTP_USER_AGENTMozilla/5.0 (Windows NT 5.1; rv:44.0) Gecko/20100101 Firefox/44.00x0b?HTTP_ACCEPTtext/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.80x14#HTTP_ACCEPT_LANGUAGEzh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.30x140x0dHTTP_ACCEPT_ENCODINGgzip, deflate0x0f0x0aHTTP_CONNECTIONkeep-alive