Closed Bug 479141 Opened 17 years ago Closed 16 years ago

javascript xmlhttp setRequestHeader can't change firefox's built-in connection header value

Categories

(Core :: DOM: Core & HTML, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: fodorferi, Unassigned)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; hu; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6 (.NET CLR 3.5.30729) Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; hu; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6 (.NET CLR 3.5.30729) The javascript XMLHTTP objects setRequestHeader("Connection","close") method doesn't change the request's "Connection" header value to "close", it's still "keep-alive" Reproducible: Always Steps to Reproduce: 1. write an XMLHTTP request 2. send() it to the server 3. view the request's headers with FireBug Actual Results: the "Connection" header's value is still "keep-alive" Expected Results: the "Connection" header's value needed to be the value I wrote ("close").
http://www.w3.org/TR/XMLHttpRequest/ says For security reasons, these steps should be terminated if the header argument case-insensitively matches one of the following headers: * Accept-Charset * Accept-Encoding * Connection * Content-Length * Content-Transfer-Encoding * Date * Expect * Host * Keep-Alive * Referer * TE * Trailer * Transfer-Encoding * Upgrade * Via
Component: General → DOM
Product: Firefox → Core
QA Contact: general → general
Yep. This behavior is by-design.
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → INVALID
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.