Rebol 3 - How to send username and password via https?

I am 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?

+4
source share
1 answer

Currently, high-level support (using username: password @ in URLs) for authorization is not implemented in the HTTP Rebol 3 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] ] 
+6
source

Source: https://habr.com/ru/post/1492763/


All Articles