On Sep 11, 2:19 am, Praveen Subramanian wrote:
> Hi,
>
> The following snippet of code doesn't take me to the google home page.
> I even tried with "return redirect('
http://www.google.com'). Any
> pointers?
Hi,
I think you are confusing the purpose of redirect(). It doesn't
perform HTTP requests. It just prints out a header with a Location
field so that browsers redirect to the provided URL.
To get the contents of an external page, you must do an HTTP request.
On App Engine you use the urlfetch service for that, or urllib/
urllib2.
Hope this helps.
-- rodrigo