回复:JSON-RPC 密码
原始发布页
打开来源页面查看 1 个交叉存档
引用 gavinandresen 于 2010 年 7 月 23 日 03:11:45 PM 的发言
问大家一个问题:我是否应该在 wiki 页面上添加一个章节,详细介绍如何进行 HTTP 基本认证?PHP 和 Python 让这件事变得非常容易——只需使用 http://user:pass@host:port/ 这种 URL 语法。
是的,我认为那会非常好,这样每位开发者就不必自己摸索了。我们需要分别为 Python、PHP 和 Java 提供一个简单示例,展示如何导入 json-rpc 库并用它执行 getinfo 或类似操作,包括完成 http 认证的部分。
英文原文
展开英文原文
Quote from: gavinandresen on July 23, 2010, 03:11:45 PM
Question for everybody: should I add a section to the wiki page describing, in detail, how to do HTTP Basic authentication? PHP and Python make is really easy-- just use the http://user:pass@host:port/ URL syntax.
Yes, I think that would be really good so each dev doesn't have to figure it out themselves. We need a simple example for each of Python, PHP and Java importing the json-rpc library and using it to do a getinfo or something, including doing the http authentication part.