<div dir="ltr">I'm getting a bunch of 404's when trying to download OSM data from the API. I'm printing out the response and headers along with the URL in DownloadFile() in <a href="http://libtah.pm">libtah.pm</a> below. When I use wget to fetch the data, it downloads the file just fine.<br>
<br>$URL = <a href="http://www.openstreetmap.org/api/0.5/map?bbox=11.118164,46.245521,11.135742,46.326910">http://www.openstreetmap.org/api/0.5/map?bbox=11.118164,46.245521,11.135742,46.326910</a><br>$res =<br>HTTP/1.1 404 Not Found<br>
Connection: Keep-Alive<br>Date: Fri, 29 Aug 2008 15:15:59 GMT<br>Server: lighttpd/1.4.19<br>Content-Length: 345<br>Content-Type: text/html<br>Client-Date: Fri, 29 Aug 2008 15:08:56 GMT<br>Client-Peer: <a href="http://3.20.128.6:88">3.20.128.6:88</a><br>
Client-Response-Num: 1<br>Title: 404 - Not Found<br><br><?xml version="1.0" encoding="iso-8859-1"?><br><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"<br> "<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>"><br>
<html xmlns="<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a>" xml:lang="en" lang="en"><br> <head><br> <title>404 - Not Found</title><br> </head><br>
<body><br> <h1>404 - Not Found</h1><br> </body><br></html><br></div>