[OSM-dev] Problem retrieving wiki pages
Marc Schütz
schuetzm at gmx.net
Fri Aug 28 09:11:16 BST 2009
Am Donnerstag 27 August 2009 23:50:19 schrieb Andreas Kalsch:
> When I retrieve Wiki pages via wget I get a confusing bunch of characters:
>
> ?????????[?$?&?=??~r????
y?te?????jwUw????g??G?G?wF??v?lA?|
> ??(AJ(?5???=|??'???????{?_"?3#3w????n77??l?|???}?ëO???5????O/?{
>em?l??W???o????????)t?i(??w&????-kk
dz3??????
> '??G???K???V???a(???^p?_??:74?{zz*joQ?????\??J?
> ??|k?h???????S7v?5???e?}>?z??o;-O73w???b?KlS_[?Fn|??7??-
> ?N??{?5r}7t? ??p??w?ajv?w???
>
Dz-gf?q?x
????3g0?OP$?>?w?l4?8[???,t?+?????>???N??|??
??{???
> etc.
>
> The funny thing is, that when I open the file in TextWrangler, the
> page's HTML will be shown properly - every other way to show the file
> fails. The default text editor or Forefox will just show the
> inrecognizable characters.
>
> To adjust request headers or output encoding will not work, too.
> Every other website I have tried works as expected.
>
> Does somebody know what is going on here? Some days ago everything still
> worked properly.
I can reproduce this. The server seems to send gzip encoded content, although
wget did not send 'Accept-Encoding':
GET /index.php?title=Hauptseite&uselang=de HTTP/1.0
User-Agent: Wget/1.11.4
Accept: */*
Host: wiki.openstreetmap.org
Connection: Keep-Alive
HTTP/1.0 200 OK
Date: Fri, 28 Aug 2009 07:42:54 GMT
Server: Apache
X-Powered-By: PHP/5.2.4-2ubuntu5.6
Content-Language: en
ETag: W/"wiki:pcache:idhash:4416-0!1!0!!de!2!edit=0--20090828043909"
Vary: Accept-Encoding,Cookie
X-Vary-Options: Accept-Encoding;list-contains=gzip,Cookie;string-
contains=wikiToken;string-contains=wikiLoggedOut;string-contains=wiki_session
Cache-Control: s-maxage=18000, must-revalidate, max-age=0
Last-Modified: Fri, 28 Aug 2009 04:39:09 GMT
Content-Encoding: gzip
Content-Length: 13134
Content-Type: text/html; charset=UTF-8
Age: 1490
X-Cache: HIT from ross.wwood.co.uk
X-Cache-Lookup: HIT from ross.wwood.co.uk:3128
Via: 1.0 ross.wwood.co.uk:3128 (squid/2.6.STABLE18)
Connection: keep-alive
This is probably due to a misconfiguration of the proxy server; I think it is
unlikely that MediaWiki is the cause.
Regards, Marc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20090828/d9866055/attachment.pgp>
More information about the dev
mailing list