Tuesday, October 27, 2009

Google Statics Maps API 403 error in header

Requesting this URL works like a charm if you paste it directly into
any browser:

http://maps.google.com/maps/api/staticmap?size=472x282&key=ABQIAAAA8gcAojrDoO3Kyzf-NSLmzRS5dLr-h5FE7lwZd-XjtTyht2KiVBQ_zzQYAGjDSjelCbTGxleMobqiBg&sensor=false&language=de&maptype=roadmap&format=png&path=fillcolor:0xAA000033|color:0xFFFFFF00|enc:iiieH_}|n@x]auL%60zAuaLhrCy{J~cEceI%60mFe%60GrkGcpDh~GmxAndHz@x}G|{AtjGrrDxkFjaGvbEvdIfqCzyJhyAr~Kp]jqLq]hqLiyAr~KgqCzyJwbEvdIykFjaGujGtrDy}G|{AodHz@i~GmxAskGcpDamFe%60G_dEeeIirCw{JazAuaLy]auL

If I embed this request in my site (currently in dev) then the image
is not loaded. The headers show the following:

GET /maps/api/staticmap?size=472x282&key=ABQIAAAA8gcAojrDoO3Kyzf-
NSLmzRS5dLr-h5FE7lwZd-
XjtTyht2KiVBQ_zzQYAGjDSjelCbTGxleMobqiBg&sensor=false&language=de&maptype=roadmap&format=png&path=fillcolor:
0xAA000033|color:0xFFFFFF00|enc:u}%60dH_}|n@lA}a@fFk%60@vJk]
vNaY~QsSlTgM|UiFnV?|UhFnThM|QrSvN%60YvJj]fFj%60@lAza@mAza@gFj%60@wJj]wN
%60Y}QrSoThM}UfFoV@}UiFmTgM_RsSwNaYwJm]gFk%60@mA{a@ HTTP/1.1
Host: maps.google.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:
1.9.1.3) Gecko/20090824 Firefox/3.5.3
Accept: image/png,image/*;q=0.8,*/*;q=0.5
Accept-Language: de,en-us;q=0.7,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://locdev.cabchap.com:3000/de-DE/asks?query=Freiburg&scope=2&commit=Find+available+asks

HTTP/1.x 403 Forbidden
Content-Type: text/plain; charset=UTF-8
Content-Encoding: gzip
Date: Tue, 27 Oct 2009 13:20:32 GMT
Server: staticmap
Cache-Control: private, x-gzip-ok=""
Content-Length: 119
X-XSS-Protection: 0

There it is, 403 Forbidden! I don't have any proxy in between we are
connected via DSL to the intertubes. I know that the API gives 60x
errors, but I don't know what or who may cause this - especially
because it works if you cut&paste the same URL into your browser of
choice and get the following reply headers easily:

HTTP/1.x 403 Forbidden
Content-Type: text/plain; charset=UTF-8
Content-Encoding: gzip
Date: Tue, 27 Oct 2009 13:20:32 GMT
Server: staticmap
Cache-Control: private, x-gzip-ok=""
Content-Length: 119
X-XSS-Protection: 0

Any pointers welcome!

P.S. If this is not enough I may be able to release my current dev
mess to the dev public, but only after serious cleanup ;-) Thanks!

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Google Maps API" group.
To post to this group, send email to google-maps-api@googlegroups.com
To unsubscribe from this group, send email to google-maps-api+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en
-~----------~----~----~----~------~----~------~--~---

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate