Thanks to Andre Coetzee for spotting.
Also, don't hardcode port 80, intead use the port given in the url
self.maxPending = maxPending
self.requests = []
self.pendingRequests = []
- self.httpConnection = HTTPConnection(self.parsedBaseUrl.netloc,80, True)
+ self.httpConnection = HTTPConnection(self.parsedBaseUrl.netloc)
self.httpRequestHeaders = headers = {'Host':self.parsedBaseUrl.netloc,'Content-Length':0,'Connection':'Keep-Alive','User-Agent':'FlightGear terrasync.py'}
def doGet(self, httpGetCallback):