Update: The issue appears to be in the page I am attempting to connect
to, not the fact that it is an App Engine Page.  This is the code I
have, does anyone know of something I am missing that is necessary to
return information?

public void doGet(HttpServletRequest req, HttpServletResponse resp)
throws IOException {
                resp.setContentType("text/html");

                PrintWriter out = resp.getWriter();
                out.println("<html>");
                out.println("<head><title> Request Type: GET </title></head>");
                out.println("<body>");
                out.println("Hello, world.  This is a response to a get 
request.");
                out.println("</body></html>");
                out.flush();
                out.close();
        }


On Aug 20, 3:53 pm, Lisa <[email protected]> wrote:
> Could anyone explain why issuing an HTTP GET request to an App Engine
> Page would fail?
>
> The following code accessing a page causes an IOException with an
> Unknown error message:
> String urlstring = "http://et-demo.appspot.com/subscribe";;
> URL url = new URL(urlstring);
> BufferedReader reader = new BufferedReader(new InputStreamReader
> (url.openStream()));
>
> And the following code works (all I changed is the url string):
> String urlstring = "http://www.google.com";;
> URL url = new URL(urlstring);
> BufferedReader reader = new BufferedReader(new InputStreamReader
> (url.openStream()));
>
> The page I am trying to access does exist and when I go to it in my
> web browser it is pretty fast.  Does anyone know why this would
> happen?  Does it have something to do with App Engine?
>
> Thanks,
> Lisa
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to