dialogflow-python-client icon indicating copy to clipboard operation
dialogflow-python-client copied to clipboard

How to disable ssl verification for ai.text_request()

Open Rakin061 opened this issue 7 years ago • 1 comments

In the python text examples

request = ai.text_request() request.lang = 'de' # optional, default value equal 'en' request.session_id = "<SESSION ID, UNIQUE FOR EACH USER>" request.query = "Hello" response = request.getresponse()

Is there any way to omit ssl verification for the text_request() and getresponse() methods. As, I am using HTTPS, in the server side all the requests require ssl verification.

I need something like the request

requests.get('https://kennethreitz.com', verify=False)

So, text request and response going through api.ai will not check for any ssl certificate.

Rakin061 avatar Feb 19 '18 10:02 Rakin061

Wouldn't it be nice to get HTTPS support from this python client....

As like python requests library,

Either there should an option to send certificates as parameters

requests.get( url, cert=cert)

Or, an option to disable ssl verificaiton

requests.get(url, verify=False)

Rakin061 avatar Feb 21 '18 11:02 Rakin061