antony.trupe
antony.trupe

Reputation: 10824

app engine URL class logging warning

What is the preferred method of fetching a url and it's content in app-engine?

This is how I'm doing it now:

URL google = new URL("http://www.google.com");
google.openStream();

and this is the warning I get

Mar 6, 2010 4:11:50 AM org.apache.commons.httpclient.HttpMethodBase getResponseBody
WARNING: Going to buffer response body of large or unknown size.
         Using getResponseBodyAsStream instead is recommended.

Upvotes: 1

Views: 527

Answers (1)

Thilo
Thilo

Reputation: 262464

I think this is only a problem of the development server. Do you get this message on the production server as well?

In any case, the API you are using is the official way to fetch URL content.

Upvotes: 1

Related Questions