Re: HTTPRequest Plugin - v0.1.0
Posted: Tue Aug 22, 2017 7:13 am
hi,
great that you already improved your plugin. Thanks for that.
It will not work for me though as soon as I use cert verification. It's the as when I used Requests directly from a script as posted earlier.
Don't you guys get this error?
If I turn off the verification it will work. I'll get this warning though...
[Edit: ]
I did some digging. This seems to happen because of python is not able to access trusted root CA files on the system. I found some solutions for linux systems but have no clue how python is supposed to work on windows here. Maybe this can be of any help: https://stackoverflow.com/questions/277 ... -directory
great that you already improved your plugin. Thanks for that.
It will not work for me though as soon as I use cert verification. It's the as when I used Requests directly from a script as posted earlier.
Code: Select all
09:09:09 HTTPRequest: GET https://google.de/
09:09:09 Fehler in Befehl: "HTTPRequest: GET https://google.de/"
09:09:09 Traceback (most recent call last) (0.5.0-rc4):
09:09:09 File "C:\Program Files (x86)\EventGhost\eg\Classes\ActionBase.py", line 116, in CallWrapper
09:09:09 return self(*args)
09:09:09 File "C:\ProgramData\EventGhost\plugins\HTTPRequest\__init__.py", line 58, in __call__
09:09:09 stream=False)
09:09:09 File "C:\Program Files (x86)\EventGhost\lib27\site-packages\requests\api.py", line 57, in request
09:09:09 return session.request(method=method, url=url, **kwargs)
09:09:09 File "C:\Program Files (x86)\EventGhost\lib27\site-packages\requests\sessions.py", line 475, in request
09:09:09 resp = self.send(prep, **send_kwargs)
09:09:09 File "C:\Program Files (x86)\EventGhost\lib27\site-packages\requests\sessions.py", line 585, in send
09:09:09 r = adapter.send(request, **kwargs)
09:09:09 File "C:\Program Files (x86)\EventGhost\lib27\site-packages\requests\adapters.py", line 477, in send
09:09:09 raise SSLError(e, request=request)
09:09:09 SSLError: [Errno 2] No such file or directoryIf I turn off the verification it will work. I'll get this warning though...
Code: Select all
09:10:43 HTTPRequest: GET https://www.google.de/
09:10:43 HTTPRequest: GET https://google.de/
09:10:43 C:\Program Files (x86)\EventGhost\lib27\site-packages\requests\packages\urllib3\connectionpool.py:821: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html
09:10:43 InsecureRequestWarning)
09:10:43 C:\Program Files (x86)\EventGhost\lib27\site-packages\requests\packages\urllib3\connectionpool.py:821: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html
09:10:43 InsecureRequestWarning)
09:10:43 print results
09:10:43 <Response [200]>
09:10:43 <!doctype html><html itemscope="" itemtype="http://schema.org/WebPage" lang="de"><head><meta content="text/html; charset=UTF-8" http-equiv="Content-Type"><meta content="/images/branding/googleg/1x/googleg_standard_color_128dp.png" itemprop="image"><title>Google</title>
[...........]
</script></div></body></html>[Edit: ]
I did some digging. This seems to happen because of python is not able to access trusted root CA files on the system. I found some solutions for linux systems but have no clue how python is supposed to work on windows here. Maybe this can be of any help: https://stackoverflow.com/questions/277 ... -directory