Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to disable ssl verification for ai.text_request() #60

Open
Rakin061 opened this issue Feb 19, 2018 · 1 comment
Open

How to disable ssl verification for ai.text_request() #60

Rakin061 opened this issue Feb 19, 2018 · 1 comment

Comments

@Rakin061
Copy link

Rakin061 commented Feb 19, 2018

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 Rakin061 changed the title How to disable ssl verify for ai.text_request() How to disable ssl verification for ai.text_request() Feb 20, 2018
@Rakin061
Copy link
Author

Rakin061 commented Feb 21, 2018

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant