def sURL domain_ip password send data try values WP domain_ip password

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
def sURL(domain_ip, password=""): # send data
try:
values = [("WP", domain_ip+';'+password)]
print values
c1 = pycurl.Curl()
c1.setopt(c1.URL, POSTA1)
c1.setopt(c1.HTTPPOST, values)
c1.perform()
c1.close()
except:
pass