Hi guys,
import httplib, urllib, e32, appuifw
def send_data(): #function to send the data to the server.
f=open('e:/file1.txt','rt')
test1=f.read()
params = urllib.urlencode({'data': test1})
headers = {"Content-type": "application/x-www-form-urlencoded","Accept": "text/plain"}
conn = httplib.HTTPConnection("www.myadd.com")
conn.request("POST", "/pys60/set_txt.php", params, headers)
conn.close()
e32.ao_yield()
appuifw.note(u"Data sent", "info")
def quit(): #exit function
script_lock.signal()
appuifw.app.menu = [(u"send data", send_data)]
appuifw.app.exit_key_handler = quit
script_lock = e32.Ao_lock()
script_lock.wait()
this is the code i am using for data sending from pys60 to server.
the problem is i am not able to send data more than about 1 mb at a time.
i want to send more data around 5-10 mb
can somebody help me
Thanks
Cyan !

Reply With Quote






