Bitcointalk · JSON-RPC password

中本聪,2010 年 7 月 23 日

SN-1440 已核对来源,附原文与上下文。

阅读语言
中文译文

问大家一个问题:我该不该在 wiki 页面加一节,详细讲怎么做 HTTP Basic authentication?PHP 和 Python 特别简单——用 http://user:pass@host:port/ URL 语法就行。

要,我觉得这非常好,省得每个开发者都自己摸索一遍。我们需要给 Python、PHP、Java 各配一个简单示例,导入 json-rpc 库并用它跑一个 getinfo 之类的调用,包括做 http 认证那部分。

ORIGINAL · 英文原文
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.
来源
Bitcointalk 原始链接 ↗ 记录编号 SN-1440