簡體   English   中英

python-requests和TLS

[英]python-requests and TLS

是否可以使用使用TLS的請求包發出請求?

做的時候:

requests.get('someurl')

我越來越:

SSLError: [Errno 8] _ssl.c:491: EOF occurred in violation of protocol

不確定您要嘗試的網址,但希望在下面對您有所幫助。

In [35]: url = 'https://www.googleapis.com/freebase/v1/mqlread?query=hello&key=xyz'
In [36]: requests.request("GET",url)
Out[36]: <Response [400]>

有關更多文檔,請參閱此處

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM