Link to home
Create AccountLog in
Avatar of sun hongda
sun hongdaFlag for China

asked on

Which version of Python or above is required to support TLS 1.2 in the http.client.HTTPSConnection method?

Hello.

Could you please advise on a question? We need to integrate Lambda Python with a third-party API. Which version of Python or above is required to support TLS 1.2 in the http.client.HTTPSConnection method?

Sample code:
conn = http.client.HTTPSConnection(domainname)
conn.request(“POST”, ocr_url, binary_image, headers)

Regards,
Jason

SOLUTION
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of sun hongda

ASKER

hello 

Thank you very much for your help, just one questions I have delploy in that in AWS show below error

Response { "errorMessage": "Unable to import module 'lambda_function': No module named 'requests'", "errorType": "Runtime.ImportModuleError", "requestId": "f4f2480e-9fe0-4043-976a-02e138ab91c0", "stackTrace": [] } 

how to resolve that 

thank you

ASKER CERTIFIED SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.