hello,i have 3 questions.
first of all : is there any other alternative of using httplib for sending asyncrounous data to a server?

i need to send data to a server constantly , for this im using the httplib module. The first thing i tried was sending data from the main loop of my program, the problem with this is since "request" waits until it sends the data and receives an answer it makes my app very slow.
Somebody recommended me using threads for avoiding this.

So im trying to open an access point inside a thread and send the data from there but it doesnt work , do any body have an idea?
if i execute this code from outside a thread it works fine, but when i put inside it doesnt work.
Code:
class MiThread(threading.Thread):
    def __init__(self, num):
        apid = select_access_point()
        apo = access_point(apid)
        set_default_access_point(apo)
        s = socket(AF_INET, SOCK_STREAM)
        myip= apo.ip()
        params = urllib.urlencode({'data': 34242, 'equis': 3123, 'ygri': 12444})
        headers = {"Content-type": "application/x-www-form-urlencoded", "Accept": "text/plain"}
        conn = httplib.HTTPConnection("www.kplex.net")
        threading.Thread.__init__(self)
        self.num = num
    def run(self):

         conn.request("POST", "/cgi-bin/grow_recibe.py", params, headers)
         response = conn.getresponse()

im initialzing the thread in this way:

t = MiThread(1)
t.start()
t.join()


my last cuestion is how can i call the run function of my thread constantly in a loop? i want to send messages all the time to the server, not just one. how can i do this from inside the thread?


thanks

oyuky