I'm trying to access the feed from my google account and I do not know how to send the user and password:

>> 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"

How do you do this?

有帮助吗?

解决方案

Currently, high-level support (using username:password@ in URLs) for authorization is not implemented in Rebol 3's HTTP scheme.

However, you can easily send the HTTP Authorization header directly (for HTTP "basic" auth):

read [
    scheme: 'https
    host: "mail.google.com"
    path: "/mail/feed/atom"
    headers: [Authorization: join "Basic " enbase/base "user:pass" 64]
]
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top