Rebol 3 - How do I submit a username and password through https?

https, rebol, rebol3

Solution

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

Problem

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?

Original source