October 2011
Intermediate to advanced
352 pages
7h 58m
English
The App Engine does not allow you to set up your own socket connections to the outside world. It does allow you to perform HTTP requests on other servers, though. This chapter starts by showing that the basic URL connections in the Java language can also work on the Google App Engine. Then it shows how you can get more control over your HTTP connection using the low-level API. There is example code for how to post forms, handle exceptions, and fetch URLs asynchronously. The chapter ends with a discussion of how to reach web services, and it provides a few disclaimers on connection security.
The simplest use case of the URL Fetch API is to read data from another ...
Read now
Unlock full access