Possible Duplicate:
Why am I getting this error in python ? (httplib)
i have some problem with coding in python, i want to create web service with abyssws python in local python service, but i cannot receive response..whereas i get response when i request from browser..
my code like this :
import httplib
IP = "local ip"
v_params = ""
conn = httplib.HTTPConnection(IP,8021)
conn.request("GET", v_params)
response = conn.getresponse()
data_response = response.read()
and getting error ilke this
Traceback(most recent call last):
File "C:\Python24\lib\httplib.py", line 866, in getresponse
response.begin()
File "C:\Python24\lib\httplib.py", line 336, in begin
version, status, reason = self._read_status()
File "C:\Python24\lib\httplib.py", line 300, in _read_status
raise BadStatusLine(line)
httplib.BadStatusLine
any suggestion??please help me?