나는 PoolManager와 HTTPSConnectionPool 모두와 'POST'요청을 테스트했습니다.PoolManager에서 HTTPSConnectionPool이 작동하지 않는 이유는 무엇입니까?
import urllib3
HOST = 'https://some.url.com'
PORT = 443
PATH = '/some-api'
xml_request = '<some xml tree/>'
manager = urllib3.PoolManager()
res = manager.request('POST', HOST+PATH, {'req':xml_request})
및 HTTPSConnectonPool에 대한 :
urllib3.exceptions.MaxRetryError:
HTTPSConnectionPool(host='https://some.url.com', port=443):
Max retries exceeded with url: /some-api (Caused by <class 'socket.gaierror'>:
[Errno -2] Name or service not known)
여기 PoolManager 내 코드입니다 :
manager = urllib3.HTTPSConnectionPool(HOST, port=PORT)
res = manager.request('POST', PATH, {'req':xml_request})
나는 프로그래밍 질문으로 이것을보기 위해 사투를 벌인거야. – MattH