Answer the question
In order to leave comments, you need to log in
Why is there an error on GET request in python?
I make several requests in a loop that contains a list of GET request attributes.
More or less like this:
class...
self.log_paths = ["a=123","b=456","c=789"]
def main_loop(self)
self.basepath = "index.html?"
self.httpServ = httplib.HTTPConnection(self.host, self.port)
self.httpServ.connect()
for item in self.log_paths:
main_path = self.basepath + item
self.run_removed(self.httpServ, main_path)
time.sleep(0.5)
def run_removed(self, serv, path):
serv.request('GET', path)
response = serv.getresponse()
return
Failed (<class 'httplib.ResponseNotReady'>)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question