Rebol 3 - 如何通过https提交用户名和密码?

kea*_*ist 4 https rebol rebol3

我正在尝试从我的Google帐户访问Feed,但我不知道如何发送用户和密码:

>> read https://mail.google.com/mail/feed/atom
** Access error: protocol error: "Authentication not supported yet"

>> read https://user:pass@mail.google.com/mail/feed/atom
** Access error: protocol error: "Authentication not supported yet"
Run Code Online (Sandbox Code Playgroud)

你怎么做到这一点?

rgc*_*ris 6

目前,在Rebol 3的HTTP方案中没有实现用于授权的高级支持(使用用户名:URL中的密码@).

但是,您可以轻松地直接发送HTTP Authorization标头(对于HTTP"basic"auth):

read [
    scheme: 'https
    host: "mail.google.com"
    path: "/mail/feed/atom"
    headers: [Authorization: join "Basic " enbase/base "user:pass" 64]
]
Run Code Online (Sandbox Code Playgroud)