GET and POST
John J. Lee
jjl at pobox.com
Thu Sep 11 13:15:47 EDT 2003
Brian Victor <bhv1 at psu.edu> writes:
> franck wrote:
> > i know how to do a GET.
> >:) i have this example.
> > my contact tell my i must do a get AND a post :/
> >
> > GET to fuse param et POST for the others.
>
> Without knowing urllib, I would infer from the rest of the code that
> you'd want to do something like this:
>
> getparams['fuseaction'] = '*****'
> postparams['num_card'] = '*****'
>
> getparams = urllib.urlencode(getparams)
> postparams = urllib.urlencode(postparams) # may not be necessary
> f = urllib.urlopen("http://bidule.com?%s" % getparams, postparams)
It seems unlikely that that's what is required (but you never
know...).
If the OP can post the HTML or a link, it would be rather easier to
say what the problem is!
John
More information about the Python-list
mailing list