title: Use Google Engine URL to fetch google doc got java.net.SocketTimeoutException
body: <p>Within google engine, I can fetch other URLs on the web, but I cannot fetch a google doc (I tried the normal java url connection and it has no problem to fetch the google doc). </p>
  
  <p>java.net.SocketTimeoutException: Timeout while fetching: <a href="https://docs.google.com/uc" rel="nofollow">https://docs.google.com/uc</a>.... </p>
  
  <pre><code>
  
        OutputStream os = resp.getOutputStream();
          URL url = new URL("https://docs.google.com/uc?id=0B-UWER27gDKlUjRkT2czVXpzNDg");
          HttpURLConnection conn = (HttpURLConnection)url.openConnection();
          conn.setInstanceFollowRedirects(true);
          // URL url = new URL("http://www.gradsch.ohio-state.edu/Depo/ETD_Tutorial/lesson2.pdf");
          System.out.println(url);
           byte b[] = new byte[2048];
          InputStream is = url.openStream();
          int len;
          while ((len=is.read(b))!=-1)
          {
              os.write(b, 0, len);
          }
  </code></pre>