如何删除在Javascript中的HTTP特定的头Javascript、HTTP

由网友(好感都给你)分享简介:是否有可能,发送一个HTTP消息之前,用除去一些特定的HTTP标头的JavaScript / XmlHtt prequest?Is it possible to, before sending a http message, remove some specific http headers using javasc...

是否有可能,发送一个HTTP消息之前,用除去一些特定的HTTP标头的JavaScript / XmlHtt prequest?

Is it possible to, before sending a http message, remove some specific http headers using javascript / XmlHttpRequest ?

我使用的是专用的浏览器,所以没有办法使用浏览器特定的解决方案来做到这一点。

I'm using a proprietary browser, so there's no way to do it using browser specific solution.

例如,我想删除标题授权之前,发送邮件

For example, I want to remove the header 'Authorization' before send the message

POST /social/rpc?oauth_version=1.0& ... HTTP/1.1

Accept: text/html, image/png, image/*, */*
Accept-Language: ko
Authorization: Basic Og==
Host: test.myhost.com

问候

推荐答案

您可以使用XmlHtt prequest对象的setRequestHeader方法,假设你的浏览器支持它,这是的

阅读全文

相关推荐

最新文章