title: 301 Moved Permanently
body: <p>I'm trying to get HTML by URL in Java. But <code>301 Moved Permanently</code> is all that I've got. Another URLs work. What's wrong? This is my code:</p>
  
  <pre><code> hh= new URL("http://hh.ru");
          in = new BufferedReader(
                  new InputStreamReader(hh.openStream()));
  
  
          while ((inputLine = in.readLine()) != null) {
  
              sb.append(inputLine).append("\n");
              str=sb.toString();//returns 301
  
  
          }
  </code></pre>