http call.

Bruno Desthuilliers onurb at xiludom.gro
Tue Oct 24 04:18:48 EDT 2006


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?
> 
The fact that it's a PHP (or Java or Python or .NET or whatever)
application is totally orthogonal as long as you're using HTTP. And you
may want to have a look at the urllib and urllib2 modules in the
standard lib.

-- 
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'onurb at xiludom.gro'.split('@')])"



More information about the Python-list mailing list