首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >获取HTTP内容

获取HTTP内容
EN

Stack Overflow用户
提问于 2014-08-26 15:32:37
回答 1查看 115关注 0票数 0

这是我访问pwd.html时的Http头跟踪

代码语言:javascript
复制
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的一部分,而是请求的一部分。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-08-26 15:41:04

这是不可能的,除非服务器将此值包含在pwd.html本身的内容中。这需要服务器端的东西,如PHP或Node.js。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/25509720

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档