[Bug 518401] [NEW] Inconsistency of HTTP headers sent by Konqueror

Michael Tsang miklcct at gmail.com
Sun Feb 7 14:09:10 UTC 2010


Public bug reported:

Binary package hint: kdebase

The HTTP headers sent from Konqueror isn't the same when the same page
is entered in the address bar and click through a link:

Here's a PHP code to test this:

<?php
header("Content-Type: text/html");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Header test</title>
</head>
<body>
<pre>
<?php
header("Content-Type: text/html");
foreach(http_get_request_headers() as $field=>$value) {
        echo "$field: $value\n";
}
?>
</pre>
<div>
<?php
print "<a href=\"$_SERVER[REQUEST_URI]\">Load this page again</a>\n";
?>
</div>
</body>
</html>

---USING WEBKIT---
Here's the result when the address is entered in the bar:

Host: localhost
Connection: Keep-Alive
User-Agent: Mozilla/5.0 (compatible; Konqueror/4.3; Linux) KHTML/4.3.5 (like Gecko)
Accept: text/html, image/jpeg;q=0.9, image/png;q=0.9, text/*;q=0.9, image/*;q=0.9, */*;q=0.8
Accept-Encoding: x-gzip, x-deflate, gzip, deflate
Accept-Charset: utf-8, utf-8;q=0.5, *;q=0.5
Accept-Language: en-GB, en-US, en
Cookie: __utmz=111872281.1265465264.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=111872281.1183200936.1265465264.1265551092.1265551092.-; __utmc=111872281
Load this page again

Here's the result when the link is clicked:

Host: localhost
Connection: close
User-Agent: Mozilla/5.0 (X11; U; Linux; en-HK) AppleWebKit/527+ (KHTML, like Gecko, Safari/419.3)  konqueror/4.3.5
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Encoding: x-gzip, x-deflate, gzip, deflate
Accept-Charset: utf-8, utf-8;q=0.5, *;q=0.5
Accept-Language: en-GB, en-US, en
Cookie: __utmz=111872281.1265465264.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=111872281.1183200936.1265465264.1265551092.1265551092.-; __utmc=111872281
Referer: http://localhost/header_test.php
Load this page again

---USING KHTML---
Here's the result when the address is entered in the bar:

Host: localhost
Connection: close
User-Agent: Mozilla/5.0 (compatible; Konqueror/4.3; Linux) KHTML/4.3.5 (like Gecko)
Accept: text/html, image/jpeg;q=0.9, image/png;q=0.9, text/*;q=0.9, image/*;q=0.9, */*;q=0.8
Accept-Encoding: x-gzip, x-deflate, gzip, deflate
Accept-Charset: utf-8, utf-8;q=0.5, *;q=0.5
Accept-Language: en-GB, en-US, en
Cookie: __utmz=111872281.1265465264.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=111872281.1183200936.1265465264.1265551609.1265551609.-; __utmc=111872281

Load this page again

Here's the result when the link is clicked:

Host: localhost
Connection: Keep-Alive
User-Agent: Mozilla/5.0 (compatible; Konqueror/4.3; Linux) KHTML/4.3.5 (like Gecko)
Referer: http://localhost/header_test.php
Accept: text/html, image/jpeg;q=0.9, image/png;q=0.9, text/*;q=0.9, image/*;q=0.9, */*;q=0.8
Accept-Encoding: x-gzip, x-deflate, gzip, deflate
Accept-Charset: utf-8, utf-8;q=0.5, *;q=0.5
Accept-Language: en-GB, en-US, en
Cookie: __utmz=111872281.1265465264.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=111872281.1183200936.1265465264.1265551609.1265551609.-; __utmc=111872281

Load this page again

As seen, The connection parts of the headers are different. Even worse,
the user agent and the accept part is completely different when WebKit
is used.

ProblemType: Bug
Architecture: amd64
Date: Sun Feb  7 22:01:39 2010
DistroRelease: Ubuntu 9.10
Package: konqueror 4:4.3.5-0ubuntu1~karmic1
ProcEnviron:
 LANGUAGE=
 PATH=(custom, user)
 LANG=en_HK.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-17.54-generic
SourcePackage: kdebase
Uname: Linux 2.6.31-17-generic x86_64

** Affects: kdebase (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug

-- 
Inconsistency of HTTP headers sent by Konqueror
https://bugs.launchpad.net/bugs/518401
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to kdebase in ubuntu.




More information about the kubuntu-bugs mailing list