原始文献 / 论坛帖 / Re: JSON-RPC password

Re: JSON-RPC password

Bitcointalk · 2010-07-23 17:07:40 UTC

AuthorSatoshi Nakamoto
TitleRe: JSON-RPC password
Date2010-07-23 17:07:40 UTC
ForumBitcointalk · 原文

引用自:gavinandresen 于 July 23, 2010, 03:11:45 PM(https://bitcointalk.org/index.php?topic=461.msg5296#msg5296)
问大家一个问题:要不要在 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(https://bitcointalk.org/index.php?topic=461.msg5296#msg5296)
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.