[Development] Proposal for allowing handling of HTTP redirects in QNAM

Richard Moore rich at kde.org
Mon Dec 30 16:15:16 CET 2013


On 30 December 2013 11:25, Thiago Macieira <thiago.macieira at intel.com> wrote:
> On segunda-feira, 30 de dezembro de 2013 11:23:29, Mandeep Sandhu wrote:
>> > Maybe rare for URL shorteners. Internal redirects inside a web site or
>> > group of sites are a different matter: call me an old-grumpy-Mosaic-user
>> > if you like, but I usually add a body of the "if you are not redirected
>> > automatically click here" -type when I program redirects, I usually even
>> > include a meta tag - you never know how stupid the configuration on the
>> > server is where your script runs.
>>
>> Oh yes! Good point...I've seen websites do this  couple of times
>> (though I was under the impression that it was done using some sort of
>> client-side timer to do the actual redirect).
>>
>> So I guess having body in the 3xx response will not be all that unusual.
>
> It will be.

Actually, it's extremely common - here's a default apache 301 for example:

monster:/home/rich/src/wireshark # telnet xmelegance.org 80
Trying 80.68.89.8...
Connected to xmelegance.org.
Escape character is '^]'.
GET /devel HTTP/1.1
Host: xmelegance.org
Content-Length: 0

HTTP/1.1 301 Moved Permanently
Date: Mon, 30 Dec 2013 15:13:21 GMT
Server: Apache
Location: http://xmelegance.org/devel/
Content-Length: 236
Content-Type: text/html; charset=iso-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="http://xmelegance.org/devel/">here</a>.</p>
</body></html>

Cheers

Rich.



More information about the Development mailing list