It looks like it started working again between my tests. So it wasn't the accept-encoding header that made it work for me, just coincidence in timing. Sorry about that.
But I think it remains that it will always send it as a content encoding gzip.
Kai
On 03/27/2012 11:54 AM, Daniel Schwen wrote:
Works again. But I'll be sending the accept-encoding:gzip header anyways. Thanks, Daniel
On Tue, Mar 27, 2012 at 11:50 AM, Kai Krueger kakrueger@gmail.com wrote:
On 03/27/2012 11:12 AM, Daniel Schwen wrote:
http://toolserver.org/~master/osmjson/getGeoJSON.php?lang=en&article=Ger...
the request re turn som garbled binary data (headed by a date string). Not well formed JSON.
I don't know what happened, but once you strip away the first line (the date string) the rest appears to be the valid json in gzip format.
By the looks of it, the php script only supports sending things in gzip format, as it is cached that way on disk.
Where the extra date line comes from and why the http-header "Content-Encoding: gzip" appears to get stipped off, I don't know.
Actually, digging a little deeper, if you send the "accpet-encoding: gzip" you get back the correct gzip encoded file (including the http header) without the date line.
Kai
example:
Tue, 27 Mar 12 17:10:06 +0000 ‹ t »®Ë ßåÄ u¿têÀ©sA Ñ d £[‰Ðð»›ß YsÉ²Ñ lñÔªY ]xçà þö·¿ÿ¯?ýö/¿ý×?ýþ?ÿô· ÿû ùý/ ùÓ¿þíÏ¿ÿõ·_¿ý› ÿü§ÿøí_þðŸ9ô¿ýþ—¿ÿ›þû¿þþû¿ÿ ?ÿõ¿ÿM þð‡uÖ(ûsû¯5W]w~Æüã/#ŸVϧ ‘o)ŸÕœ¼×þL‘[íõÓŽÈ·Û IZ9çÓ®“ç.Ÿº5ÉYý³‡“÷¨ŸÛD.e|F ¹Ûýœeäyí/?ÇGŸ¾çgŠÚæúìêÔQl Qû±ÿ «¶ù>cˆ<ûüÔ˜¹ÏaÓùÌë|ö y·Þ?Eë(ëžÏòUÿ?vä üß¿~ìæŸÿú· ÚËZWé½}N©eîV ÕmÚö¹6Çœuþã ÿß ™½ôñY“¿· ïgkU³³Åeˆ¶ _à öpœ:wý” öS>sÄmhq ÖXÕ~QGcïm|r°½ÎãÇ[í2ÄŽŒåשÚëü,_Û˜öªª y±ï 1ôÚžú‘·ÁsôžµÚ*º“·Ýiÿî9›½oÍm·oØ[ òlŸrD¶3øô Ívøå³Kk» äe Y}ôµí-¾À¹íÆ ÅN´èš-¶/æ ³´¼f» kèZ÷dÝqEì¶”Ø cLö•>‰Ý–êW¤Û„åsýÐÏå¼4Éîö•q^W×E ¿‡íuLr ]¨#ò)Ãn¶&Ù¥u&Ôh>Á¯ßn¥äJŽÝ‹`…»Í“'v«Ý³ ÚS‰ ºö‡qW÷hãú Å ;µí Lci"_»¶×' v í×!W{ɹ¾É» g ¹ý ÙCá–k´]Ïi[,2;ñ9Sd1Œ äa[2DæÝÇ$°e;m‘oÛÁuŒ\¯ïÔè Sõ ®ÛƧit‡‘,_ = n DäÖó ÛÃg —OÂ=ŽÑö=Ÿ¥•t㲟 d»ìö cnÛž l ²Šzβûïäm‡°|!×Ø_|äÞvî[;e Á–}c!¶>ŸdÔ»ó€÷ 3&±•”üÈSM’mmà «qª=†øÆY £MŸÃöÌæÐ/Ú·˜üõe_ûbç cÚž kØwÛMÓ[ “Wá»}ŠÉèÏ>"ß1â–˜d´WÞµ û€ ·ø˜ XÎŒì¾Ø³õËcd; }£qö Ÿ~ª}Ûgø`ûâ` §îµüMŽuMž ÆõŽ GcG=ãM Y_ yó(|yí ÷›1ØvÕïßéÆ~cŽÝZÞm þ¶ ~¼Ûžð§õ Û¿ýþmÛ×بcœuå/.» A=6GL=‘]N¶ .i8" Ãõ 1–lZ†ÿ"ReûúV¹7^“=Š›Ÿ¾LD»T ‡§ ˶iŒ,궿›¾ê=ƈ㽰 îªV‡™‹‘ —E,†:„z ñË] © ! ì‰C6ξ‚Ÿ ‰Ni ~ õ Ô¸âsŸ¶B(ØÔv ª“Ѥâ!ÜmC®&©› ?â¶ÚÙè6 Ù^x r1ŽzœÜí+ý Gë.Pí`š}d Q_N y˜z0ãé +vŽ ¹ÆnóÆ®ï”éSFŽÁœºØ"ëx/ É «nËV S¯‚Âä;b×2´L8ƒ±H~ÑÔ8ûq×`÷„5èÕ˜&cgsVLbü@7Š ÍP_Œu!¿| ›ÿñ( ë£íq #Y辋 2¾S¿lÇ®«¿&N¡‡2a Ìþ eÕDLAµ òÑ1šüë;ÕÝf*ÐG#« ©¤ ¾ [|«8yr\ºØvMï8ù l÷XÄ6 ‚ó Ÿ± —طޞ*ú´_r•uŸbwÒµ¥cç\·Ú·Â·âÍÀ.$fí2 ßêA^É· §3ß´íGwÝÊȦ-Å{4-ô:«´Ë¼ uøOšÖor±:yä œ‹v¢c´ a‚NÔk›~üÍ žAè)ÆžZó«zíÝ•x âæ þ–¾R°ßjÌÜ—m?bš¬/ÄÞ†½ ®X;®$Û/¦”½¦h Kf<íà}FE»j1xº1ƒ dC|Ž:ì F yÚJÝô¹…]Õ>i’ü ;r –™_RehÙ v“– õ›ä`ãFÞ Ý¿ÄX¬q m pk í/‘>¦ñ46=vÉ” -c›† ^²ƒl"{hîa 4t^vÉ˜Ï Ù ðàZ& [þ¤±Õ *üÆ• »í É6œŒeÔ´’m\î-°! 5š o,É¿r™á84·]¹T]ìãMN_ Xuq?»uV—š»6ä¾ j» ð &± |‚ßI»#º!»b §D±/(b¶Û¾Ü ßxaÝlKô ã µ¿G3šÌY‘ÏHfk 9]ØoÎ ~ rÚ.—¨6¤ä{,w õÝv± (®G ½ DµÏ-©ŠŒæ6ºi g¤<1Æl_ȵÞf ܼeÆ í _______________________________________________ Maps-l mailing list Maps-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/maps-l
Maps-l mailing list Maps-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/maps-l