jquery - get http headers

。_饼干妹妹 提交于 2019-12-11 02:35:55

问题


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


回答1:


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.

Accessing the web page's HTTP Headers in JavaScript



来源:https://stackoverflow.com/questions/19440768/jquery-get-http-headers

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!