>
>
>> #requests.packages.urllib3.disable_warnings()  # - uncomment if you use 
>> a self-signed cert over https 
>> r = session.get(url_login, verify=True) #set verify=False if you use a 
>> self-signed 
>> cert over https
>>
>>
> I'm not sure about this.  As is, it produces a ticket for "get() takes no 
> keyword arguments".  Taking out the verify, I get a result of 'None'.  That 
> doesn't seem to be useful to me.
>

In the above code, session is an instance of the requests.Session class, 
and it's .get() method does indeed take keyword arguments, as shown 
here: http://docs.python-requests.org/en/v1.0.4/user/advanced/#session-objects. 
The keyword arguments are actually passed to the requests object itself -- 
the "verify" keyword is documented 
here: 
http://docs.python-requests.org/en/master/user/advanced/#ssl-cert-verification.

Anthony

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to