Yaouh! out (update for tangogps maps)

Carlo Minucci gecco at napodano.com
Tue Jan 20 09:50:45 CET 2009


Rask Ingemann Lambertsen ha scritto:
> On Fri, Jan 16, 2009 at 04:12:19PM +0100, Tilman Baumann wrote:
>> Untested code:
>>
>>   import httplib
>>   conn = httplib.HTTPConnection("tile.openstreetmap.org")
>>   conn.request("HEAD", "/file...")
>>   r1 = conn.getresponse()
>>   print r1.status, r1.reason
>>   etag = getheader("ETag")
>>   print etag
>>
>> And if stuff was new, make GET instead of HEAD
> 
>    It sure would be more efficient if OSM supported the If-Modified-Since:
> header in a GET request. Then you wouldn't need the HEAD request.
> 
>    Also, consider using the same connection for multiple requests. It ought
> to help a lot with such small files.
> 

where can i found httplib package for openmoko?




More information about the community mailing list