2013-07-22 94 views
4

我想從我的谷歌帳戶訪問飼料,我不知道如何發送的用戶名和密碼:Rebol 3 - 如何通過https提交用戶名和密碼?

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

>> read https://user:[email protected]/mail/feed/atom 
** Access error: protocol error: "Authentication not supported yet" 

你如何做到這一點?

+1

目前主構建不包含HTTPS。我會根據替代'Saphirion'構建做出迴應。 – rgchris

+0

HTTPS現在也在[Ren/C](https://github.com/metaeducation/ren-c)版本中提供。 – rgchris

回答

6

目前,在Rebol 3的HTTP方案中沒有實現授權的高級支持(在URL中使用用戶名:password @)。

但是,你可以很容易地直接發送HTTP Authorization header(用於HTTP 「基本」 身份驗證):

read [ 
    scheme: 'https 
    host: "mail.google.com" 
    path: "/mail/feed/atom" 
    headers: [Authorization: join "Basic " enbase/base "user:pass" 64] 
] 
相關問題