4

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?

kealist
  • 1,669
  • 12
  • 26
  • 1
    Currently the main build doesn't contain HTTPS. I'll respond based on the alternate 'Saphirion' build. – rgchris Jul 22 '13 at 18:44
  • HTTPS is now also available in the [Ren/C](https://github.com/metaeducation/ren-c) build. – rgchris Aug 25 '15 at 20:57

1 Answers1

6

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]
]
Community
  • 1
  • 1
rgchris
  • 3,698
  • 19
  • 19