title: Jsoup runs incorrectly on Google App Engine
body: <p>I try to login facebook with JSoup, when test with console app or Tomcat server webapp, it runs well:</p>
  <pre><code>String userAgent = BrowserVersion.FIREFOX_38.getUserAgent();
  Connection conn1 = Jsoup.connect(&quot;https://m.facebook.com&quot;);
  Document document = conn1.userAgent(userAgent).execute().parse();
  Element form = document.select(&quot;form&quot;).get(0);
  Elements inputs = form.select(&quot;input&quot;);
  Connection conn2 = Jsoup.connect(form.absUrl(&quot;action&quot;)).userAgent(userAgent);
  for (Element input: inputs) {
      conn2.data(input.attr(&quot;name&quot;), input.val());
  }
  conn2.data(&quot;email&quot;, &quot;mail@gmail.com&quot;).data(&quot;pass&quot;, &quot;mypass&quot;);
  Connection.Response response1 = conn2.method(Connection.Method.POST).execute();
  System.out.println(response1.url());
  Document doc1 = response1.parse();
  Elements h3 = doc1.select(&quot;h3&quot;);
  for (Element element: h3) {
      System.out.println(element.text());
  }
  </code></pre>
  <blockquote>
  <p>response1.url() is <a href="https://m.facebook.com/home.php?_rdr" rel="nofollow noreferrer">https://m.facebook.com/home.php?_rdr</a></p>
  </blockquote>
  <p>But when I try with Google App Engine app, it cannot login but shows the page with message &quot;you have to login first&quot; (I guess that the request try to access some other url)</p>
  <blockquote>
  <p>response1.url() is <a href="https://m.facebook.com/login.php?next=https%3A%2F%2Fm.facebook.com%2Fhome.php%3Frefsrc%3Dhttps%253A%252F%252Fm.facebook.com%252F%26refid%3D8&amp;refsrc=https%3A%2F%2Fm.facebook.com%2F&amp;refid=8&amp;_rdr" rel="nofollow noreferrer">https://m.facebook.com/login.php?next=https%3A%2F%2Fm.facebook.com%2Fhome.php%3Frefsrc%3Dhttps%253A%252F%252Fm.facebook.com%252F%26refid%3D8&amp;refsrc=https%3A%2F%2Fm.facebook.com%2F&amp;refid=8&amp;_rdr</a></p>
  </blockquote>
  <p>I change the password to make it incorrect, it shows the incorrect-password page. So I think with correct password, the request goes to the proper page. But why with correct password, it redirects to other page?
  I don't think there is any different thing between console app and GAE that makes the request different!</p>