[Tutor] Error in my code

2007-04-17 Thread govind goyal
Hi, I am executing following lines of code: def WEP40_KEY(n): params = urllib.urlencode({}) headers = {"Connection": "Keep-Alive","Authorization": ""} conn = httplib.HTTPConnection(HOST) conn.request("GET", "/w_sec.htm HTTP/1.1", params, headers) response = conn.getresponse() print res

[Tutor] + converted to 25 in http string

2007-04-24 Thread govind goyal
fi",'ap':"ap",'ssid_enable':"ssid_enable",* 'wire_mode':"b25only",* 'w_channel':6,'lan_ac':"everyone",'int_ac':"everyone"}) In conclusion,the character "+" is getting converted into"25" whenever I run script.Thats why all other configuartions are OK except above mentioned case. Can anybody help to resolve this issue? Best Regards, Govind Goyal ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] serial -->file tranfer

2008-02-29 Thread govind goyal
Hello, I have a modem connect to my Windows XP PC through a serial cable. I Want to transfer the file(e.g '.TXT' format) from XP PC to serial modem and also from Serial modem to winXP PC. Can anybody help me out how to do it in Python and provide some sample code or useful links so that I can pro

[Tutor] Coding for AP configuration

2007-02-05 Thread govind goyal
Hello, I am a beginner in python.I am working as S/W tester relating to WI-FI testing where we've to manually configure Access points(AP). I want to write a Automated Scripts to configure my AP through HTTP. Can any body suggest basic coding for this? Thanks. Best Regards, Govind

[Tutor] Input from and output to a file

2007-02-07 Thread govind goyal
hi, 1) I want to read data not from but from a file which is in specified directory. 2) I want to redirect my output(which is by default STDOUT) to a file. Can anybody suggest these queries? Thanks Regards, Govind ___ Tutor maillist - Tutor@python.

[Tutor] python books

2007-02-07 Thread govind goyal
Hi, I want to purchase a python book but confused of which authur?I need suggestion. How is "Teach yoursef python in 24 hours by Ivan van laningham"? Regards, Govind ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] Matching string

2007-02-27 Thread govind goyal
Hello, I want to use a pattern matcing (regular expression) inside "if loop" such that if it will find "*MBytes*" and *"Mbits/sec"* both *at a time *regardless of there position in a particular string ,then only it executes code inside "if block". for example if my string is *"[904] 1.0- 2.0 s

[Tutor] urllib2_realm??

2007-04-11 Thread govind goyal
hould I write in place of realm? Can anybody help? Best Regards, Govind Goyal ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] python access of usb for winxp

2008-04-10 Thread govind goyal
tuffs? All help will be highly appreciated. Thanks and Best Regards, --Govind Goyal ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor