'@see: Comment in test_spiderman_basic'

def run(self):

    for i in xrange(120):
        s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
        try:
            s.connect(('127.0.0.1', self.proxy_port))
        except:
            time.sleep(0.5)
        else:
            break
    proxy_cfg = {'http': ('http://127.0.0.1:%s/' % self.proxy_port), 'https': ('http://127.0.0.1:%s/' % self.proxy_port)}
    proxy_support = urllib2.ProxyHandler(proxy_cfg)
    opener = urllib2.build_opener(proxy_support)
    all_urls = BROWSE_URLS
    for (method, path, payload) in all_urls:
        url = self.url_resolver(path)
        if (method == 'POST'):
            req = urllib2.Request(url, payload)
            try:
                response = opener.open(req)
            except Exception as ex:
                self.responses.append(str(ex))
            else:
                self.responses.append(response.read())
        else:
            if (payload is None):
                full_url = url
            else:
                full_url = ((url + '?') + payload)
            try:
                response = opener.open(full_url)
            except Exception as ex:
                self.responses.append(str(ex))
            else:
                self.responses.append(response.read())
    try:
        response = opener.open(TERMINATE_URL.url_string)
    except Exception as ex:
        self.responses.append(str(ex))
    else:
        self.responses.append(response.read())
