InsecureRequestWarning

419 views
Skip to first unread message

Jerry Schneider

unread,
Jan 27, 2015, 4:56:48 PM1/27/15
to robotframework-users
We have been updating some of our testcases/suites to use the
robotframework-requests library instead of using curl. In the past all
of our calls were straight http calls, but we have an app to test that
uses/redirects to https calls. With curl we just added a "-L" to follow
the redirect and all was okay, but with requests, we are getting the
following warning:

./Library/Python/2.7/site-packages/requests/packages/urllib3/connectionpool.py:730:
InsecureRequestWarning: Unverified HTTPS request is being made. Adding
certificate verification is strongly advised. See:
https://urllib3.readthedocs.org/en/latest/security.html (This warning
will only appear once by default.)
InsecureRequestWarning)

depending on the machine we are running from this is not displaying just
once.

I am guessing that the requests library has to be updated to allow for this?

Any thoughts/inputs would be greatly appreciated.

jer

--
Jerry Schneider
QA Manager
iPlant Collaborative
BIO5 Research Institute
University of Arizona
Linux registered user #475536
Ubuntu registered user #28583

Tatu Aalto

unread,
Jan 28, 2015, 1:41:47 AM1/28/15
to Jerry Schneider, robotframework-users

Ugh

I have seen same warning with different library and the library should work as designed. The link in the warning explains the cause of the warning quite well. In short, if you know what you are doing and trust the server, you can ignore the warning. If you do not, then you must fix the certification issue which you are having.

I do agree that warning is quite ugly and library could be enhanced to capture the warning and use Robot Framework standard logging to display the warning. You could make issue about it.

-Tatu
Send from my mobile

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframework-users@googlegroups.com.
Visit this group at http://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages