title: java.io.IOException: Invalid Http response
body: <p>Now before you say there are questions like this I'd like to point out I've looked over most of them without any luck. Also I'm a first timer here so be gentle.</p>
  
  <p>I have this annoyance right now in my current program:</p>
  
  <p>Basically this part of my program uses a search engine to find torrent files.</p>
  
  <pre><code>public static ArrayList&lt;String&gt; search(String args) throws IOException {        
      args = args.replace(":", "");
  
      ArrayList&lt;String&gt; list = new ArrayList&lt;String&gt;();
      URL url = new URL("http://pirateproxy.net/search/" + args + "/");
      URLConnection con = url.openConnection();
      BufferedReader br = new BufferedReader(new InputStreamReader(con.getInputStream())); &lt;---- THIS
  }
  
  public static void main(String[] args) {
      try {
          search("The Hobbit: The Desolation of Smaug");
      } catch (IOException e) {
          e.printStackTrace();
      }
  }
  </code></pre>
  
  <p>THE ERROR:</p>
  
  <pre><code>java.io.IOException: Invalid Http response
  at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
  at service.ServiceDownloader.search(ServiceDownloader.java:20)
  at service.ServiceDownloader.main(ServiceDownloader.java:45)
  </code></pre>
  
  <p>Now the fun part is that it ONLY goes wrong for this movie ("The Hobbit: The Desolation of Smaug"), every other movie works perfectly. I don't understand this. Please do help. (Also I have removed every unnecessary code from the search method)</p>
  
  <p>If I did not put enough information here please ask me for more.</p>