https://bugzilla.wikimedia.org/show_bug.cgi?id=42129
Web browser: ---
Bug #: 42129
Summary: HTTPS Connection Close for login via API for Commons
Wiki with IE user agent
Product: MediaWiki
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: API
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
Classification: Unclassified
Mobile Platform: ---
When logging in via the commons API https://commons.wikimedia.org/w/api.php
with an IE user agent, the response says "Connection: close" even if
"Connection: Keep-Alive" is set in the request. This behavior is not seen if
the user-agent is set to Firefox.
Steps to replicate:
**IE user agent request**
POST https://commons.wikimedia.org/w/api.php HTTP/1.1
Accept: */*
Accept-Language: en-us
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)
Host: commons.wikimedia.org
Content-Length: 51
Connection: Keep-Alive
Cache-Control: no-cache
format=xml&action=login&lgname=user&lgpassword=pass
**IE user agent response**
HTTP/1.1 200 OK
Server: nginx/0.7.65
Date: Thu, 15 Nov 2012 01:10:11 GMT
Content-Type: text/xml; charset=utf-8
Connection: close
X-Content-Type-Options: nosniff
Cache-Control: private
Set-Cookie: commonswiki_session=<removed>; path=/; secure; HttpOnly
X-Frame-Options: SAMEORIGIN
Vary: Accept-Encoding
Content-Length: 173
X-Cache: MISS from cp1003.eqiad.wmnet
X-Cache-Lookup: MISS from cp1003.eqiad.wmnet:3128
X-Cache: MISS from cp1011.eqiad.wmnet
X-Cache-Lookup: MISS from cp1011.eqiad.wmnet:80
<?xml version="1.0"?><api><login result="NeedToken" token="<removed>"
cookieprefix="commonswiki" sessionid="<removed>" /></api>
--------------------------------------------------------------------
**Firefox user agent request**
POST https://commons.wikimedia.org/w/api.php HTTP/1.1
Accept: */*
Accept-Language: en-us
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20100101
Firefox/11.0
Host: commons.wikimedia.org
Content-Length: 51
Connection: Keep-Alive
Cache-Control: no-cache
format=xml&action=login&lgname=user&lgpassword=pass
**Firefox user agent response**
HTTP/1.1 200 OK
Server: nginx/0.7.65
Date: Thu, 15 Nov 2012 01:14:11 GMT
Content-Type: text/xml; charset=utf-8
Connection: keep-alive
X-Content-Type-Options: nosniff
Cache-Control: private
Set-Cookie: commonswiki_session=<removed>; path=/; secure; HttpOnly
X-Frame-Options: SAMEORIGIN
Vary: Accept-Encoding
Content-Length: 173
X-Cache: MISS from cp1003.eqiad.wmnet
X-Cache-Lookup: MISS from cp1003.eqiad.wmnet:3128
X-Cache: MISS from cp1010.eqiad.wmnet
X-Cache-Lookup: MISS from cp1010.eqiad.wmnet:80
<?xml version="1.0"?><api><login result="NeedToken" token="<removed>"
cookieprefix="commonswiki" sessionid="<removed>" /></api>
Could this be related to:
http://blogs.msdn.com/b/ieinternals/archive/2011/03/26/https-and-connection-close-is-your-apache-modssl-server-configuration-set-to-slow.aspx
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l