Hi,
GET requests do not have bodies (payloads). You need to include the
parameters in the URL, just like you did in the sample URL.

-Nick Johnson

On Fri, Oct 9, 2009 at 8:22 AM, mijenix <[email protected]> wrote:

>
> Hi
>
> This works without any problems http://www.google.ch/search?q=test
>
> But why this gives me another output then the url?
>
> from google.appengine.api import urlfetch
> import urllib
>
> form_fields = {'q' : 'test'}
>
> form_data = urllib.urlencode(form_fields)
>
> url = "http://www.google.ch/search";
> result = urlfetch.fetch(url=url, payload=form_data,
> method=urlfetch.GET)
> print result.content
>
> >
>


-- 
Nick Johnson, Developer Programs Engineer, App Engine
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
368047

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" 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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to