title: OsmBonuspack - GeocoderNominatim::getFromLocationName - Invalid response from server: HTTP/1.1 403 Forbidden
body: <p>My GeocoderNominatim.getFromLocation() was working just fine.</p>
  
  <p>Now I get an error during GeocoderNominatim without changing anything!?</p>
  
  <p><strong>Invalid response from server: HTTP/1.1 403 Forbidden</strong></p>
  
  <p>My Logcat-Output:</p>
  
  <pre><code>02-02 11:15:31.570: D/BONUSPACK(25238): GeocoderNominatim::getFromLocationName:http://nominatim.openstreetmap.org/search?format=json&amp;accept-language=de&amp;addressdetails=1&amp;limit=1&amp;q=Bolivia
  02-02 11:15:32.210: E/BONUSPACK(25238): Invalid response from server: HTTP/1.1 403 Forbidden
  </code></pre>
  
  <p>The check in the Browser works fine ( <a href="http://nominatim.openstreetmap.org/search?format=json&amp;accept-language=de&amp;addressdetails=1&amp;limit=1&amp;q=Bolivia" rel="nofollow">http://nominatim.openstreetmap.org/search?format=json&amp;accept-language=de&amp;addressdetails=1&amp;limit=1&amp;q=Bolivia</a> )</p>
  
  <p>My AsyncTask:</p>
  
  <pre><code> public class SearchGeocode extends AsyncTask&lt;String, Integer, List&lt;Address&gt;&gt; {
  
      Context context = MainActivity.this;
      GeocoderNominatim coderNominatim = new GeocoderNominatim(context);
      ProgressDialog progressDialog;
      String countryTitleString;
  
      protected List&lt;Address&gt; doInBackground(String... countryTitle) {
  
          int i = 0;
          publishProgress(i);
  
          countryTitleString = Arrays.toString(countryTitle);
  
          List&lt;Address&gt; geoResults = null;
          try {
              geoResults = coderNominatim.getFromLocationName(countryTitleString, 1);
          } catch (IOException e) {
              e.printStackTrace();
              Toast.makeText(context, "Geocoding error! Internet available?", Toast.LENGTH_SHORT).show();
          }
          return geoResults;
  
      }
  
      protected void onProgressUpdate(Integer... progress) {
  
          progressDialog = new ProgressDialog(MainActivity.this);
          progressDialog.setCancelable(true);
          progressDialog.setMessage("Loading ...");
          progressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);
          progressDialog.setProgress(0);
          progressDialog.show();
  
      }
  
      protected void onPostExecute(List&lt;Address&gt; geoResults) {
          super.onPostExecute(geoResults);
  
           progressDialog.hide();
  
          if (geoResults.size() == 0) { //if no address found, display an error
              Toast.makeText(context, countryTitleString +" - Country not found.", Toast.LENGTH_SHORT).show();
          } else {
              Address address = geoResults.get(0);
              Bundle extras = address.getExtras();
              BoundingBoxE6 bb = extras.getParcelable("boundingbox");
              mapView.zoomToBoundingBox(bb);
              //makeToast(countryTitle);
          }
      }
  }
  </code></pre>
  
  <p>Any idea why I get an invalid response from the Server?</p>