Я так понимаю нужно просто отправить GET запрос.
Python:
#with httplib
import httplib
def printText(txt):
lines = txt.split('\n')
for line in lines:
print line.strip()
httpServ = httplib.HTTPConnection("www.server.ru", 80)
httpServ.connect()
httpServ.request('GET', "adres.php?parametri=ter")
response = httpServ.getresponse()
if response.status == httplib.OK:
print "Output from HTML request"
printText (response.read())
PHP:
#!/usr/bin/php -f
<?php
function csend($url,$ver)
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 30);
curl_setopt($ch, CURLOPT_USERAGENT, 'PHP Bot (http://local/)');
if ($ver)
{
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
}
$data = curl_exec($ch);
curl_close($ch);
return $data;
}
csend("http://server.ru/send.php?parametry&message=".$argv[1]."-".$argv[2],false);
?>