I ve tried a valid email as the email-parameter, I tried http instead of https,
I tried valid modern browser headers,
I ve also tried curl, but the same 400 BAD REQUEST error…
Whats wrong?
Thanks in advance…
The same request? That seems to be a very bad idea. Please look at my quote from the Usage Policy. You should have cached this result and send other requests.
You could try another mail address and another user agent, but whether you are blocked or not can only answer someone with access to log files or such.
Hmmm,
the request changed with all my tries, and I ve tried your suggestion with another email
and user agent but still no success.
Perhaps they blocked my IP meanwhile…
Your problem is definitely not the usage policy. “400” means that your request is mal-formed. Might be an encoding issue. Hard to say from the code snippet.
Ok, I ve got it running with photon.
Setting ignore_errors to TRUE within the stream_context_create gave the answer there.
For the code above that meant:
$opts = array(‘http’=>array(“method” => “GET”,“header”=>“User-Agent: mytestappother”,“ignore_errors”=>TRUE));
Photon doesnt accept the format parameter, so simple removed that and voila…
Nominatim still doesnt work, but maybe they blocked me, script seems fine.