http call.

Steve Holden steve at
Tue Oct 24 13:12:18 CEST 2006

Kirt wrote:
> Hi!
> I have a php program (test.php) on a server. eg:
> I need my python scripts to make a http call to these program pass some
> data and get back a secret key from the php program..
> Could anyone help me this, what will i need to make a http call to the
> php application?

import urllib
nf = urllib.urlopen('')
data =

Should get you started. Look for the "mechanize" and "ClientForm" (?) 
modules to help with the site interactions. It doesn't matter what 
language the server uses: you will be talking HTTP to it!

Steve Holden       +44 150 684 7255  +1 800 494 3119
Holden Web LLC/Ltd
Skype: holdenweb
Recent Ramblings

More information about the Python-list mailing list