【发布时间】:2020-02-17 13:55:10
【问题描述】:
我正在尝试实现this answer::
import requests
requests.post('http://localhost:8888', data={u'post': u'Andr\xe9 T\xe9chin\xe9'})
当我在 Jupyter 笔记本中按原样运行它时,我得到:
<Response [403]>
好的,所以禁止访问。然后我用我的令牌试一试:
requests.post('http://localhost:8888/tree?token=xxx', data={u'post': u'Andr\xe9 T\xe9chin\xe9'})
但这次我明白了:
<Response [405]>
所以post 方法是不允许的?为什么,我该如何改变?
【问题讨论】:
标签: python jupyter-notebook localhost httpresponse