python telnetlib open 超时时间_Python的请求超时值误差

Good Evening,

I cannot get my https request to go through. I'm having to use SSLv3, so I'm specifying the protocol with:

import requests

from requests.adapters import HTTPAdapter

from urllib3.poolmanager import PoolManager

import ssl

class MyAdapter(HTTPAdapter):

def init_poolmanager(self, connections, maxsize, block=False):

self.poolmanager = PoolManager(num_pools=connections,

maxsize=maxsize,

block=block,

ssl_version=ssl.PROTOCOL_SSLv3)

username = 'username'

password = 'password'

email = '[email protected]'

url = 'https://api.example.com/'

headers = {'Accept': 'application/json', 'content-type': 'application/json'}

params = {'em

你可能感兴趣的:(python,telnetlib,open,超时时间)