sun hongda
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
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
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