Código Python:
Ver originalimport requests
import cookielib
jar = cookielib.CookieJar()
user = 'xxx'
clave = 'xxx'
url = 'http://dominio.com/sub/index.php'
headers = {'Referer':'http://dominio.com/sub/index.php'}
valores = {'app': 'page', 'inc': 'login', 'op': 'auth_login',
'username': user, 'password': clave} # Valores para Login
r = requests.post(url, data=valores, headers=headers, cookies=jar) # Login
postdata = {'hiddcount': ['153'],
'message': ['MIMENSAJE'],
'p_num_text': ['00573122085989'],
'txtcount': ['8 char : 1 Sms']}
url = 'http://dominio.com/sub/index.php?app=menu&inc=send_sms&op=sendsmstopv_yes'
headers = {'Referer': 'http://dominio.com/sub/index.php?app=menu&inc=send_sms&op=sendsmstopv' }
r = requests.post(url, data=posdata, headers=headers, cookies=jar) # enviar sms
print r.text
Mas o menos así?