这是我访问pwd.html时的Http头跟踪
host:port/pwd.html?type=Msg=8
POST /pwd.html?type=Msg=8 HTTP/1.1
Host: host:port
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: anotherhost:port/referrer
Cookie: SomeCookie=loggedoutcontinue; targetURL=Someurl
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 4936
APP_REQ=324823823
HTTP/1.1 200 OK
Date: Tue, 26 Aug 2014 15:05:29 GMT
Server: Application-Server
Last-Modified: Mon, 25 Aug 2014 18:55:15 GMT
Accept-Ranges: bytes
Content-Length: 1336
Keep-Alive: timeout=5, max=99
Connection: Keep-Alive
Content-Type: text/html
Content-Language: en如何使用Javascript从我的APP_REQ中读取pwd.html的值?它不是查询字符串或URL的一部分,而是请求的一部分。
发布于 2014-08-26 15:41:04
这是不可能的,除非服务器将此值包含在pwd.html本身的内容中。这需要服务器端的东西,如PHP或Node.js。
https://stackoverflow.com/questions/25509720
复制相似问题