jquery - 获取http标头 [英] jquery - get http headers

查看:195
本文介绍了jquery - 获取http标头的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何获取页面上传递的http标头?这可以通过javascript / jquery实现吗?
我正在研究这样的事情: http://www.mulliner.org/pc。 cgi

How do you get the http headers passed on a page? Is this achievable via javascript/jquery? I'm looking into something like this: http://www.mulliner.org/pc.cgi

推荐答案

没有api可以获取当前页面的标题。解决这个问题的最佳方法是对当前页面进行ajax调用并按照此问题中的描述进行读取。

There is no api to get the headers for the current page. The best way to approach this is to make an ajax call to the current page and read them as described in this question.

使用JavaScript访问网页的HTTP标头

这篇关于jquery - 获取http标头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆