Kirt wrote: > Hi! > > I have a php program (test.php) on a server. eg: > http://abc.xyz.com/test.php > > 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('http://abc.xyz.com/test.php') data = nf.read() 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! regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC/Ltd http://www.holdenweb.com Skype: holdenweb http://holdenweb.blogspot.com Recent Ramblings http://del.icio.us/steve.holden -- http://mail.python.org/mailman/listinfo/python-list