Closed Bug 598567 Opened 15 years ago Closed 13 years ago

Ajax call does not set header for Connection

Categories

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

1.9.2 Branch
x86
Windows Vista
defect
Not set
minor

Tracking

()

RESOLVED INVALID

People

(Reporter: anup.kataria, Unassigned)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.2.2) Gecko/20100316 Firefox/3.6.2 ( .NET CLR 3.5.30729; .NET CLR 4.0.20506) Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.2.2) Gecko/20100316 Firefox/3.6.2 ( .NET CLR 3.5.30729; .NET CLR 4.0.20506) Hi, While making a Ajax call I use to set header as follows: oXMLHttpRequest.setRequestHeader("Connection", "close"); But when I look at the Header being posted on the site it says Connection to keep-alive. I have checked it with different methods, using JQuery Ajax call and even using a XMLHttpRequest object. Thanks Anup Katariya Reproducible: Always Steps to Reproduce: 1. Create a XMLHttpRequest Object 2. SetResquestHeader to set the connection to close. 3. Post the (Send the request) Actual Results: It sends Connection as Keep-Alive in the request header. Expected Results: It should send Connection as Close in the request header.
Version: unspecified → 3.6 Branch
Component: General → DOM: Mozilla Extensions
Product: Firefox → Core
QA Contact: general → general
Version: 3.6 Branch → 1.9.2 Branch
http://dvcs.w3.org/hg/xhr/raw-file/tip/Overview.html#the-setrequestheader%28%29-method step 5 says that attempts by the page to set this header should be ignored. So we're doing the right thing per spec. Please mail public-webapps@w3.org if you think the spec should be changed.
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Resolution: FIXED → INVALID
Component: DOM: Mozilla Extensions → DOM
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.