[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How do you do authentication with url.el?
From: |
Artur Malabarba |
Subject: |
Re: How do you do authentication with url.el? |
Date: |
Fri, 13 Nov 2015 14:34:04 +0000 |
2015-11-13 14:18 GMT+00:00 Dan LaManna <address@hidden>:
> This should work:
>
> (let ((url-request-method "PUT")
> (url-request-extra-headers
> `(("Authorization" . ,(concat "Basic "
> (base64-encode-string
> "user:token"))))))
> (url-retrieve-synchronously
> "https://api.github.com/user/starred/Malabarba/EndlessParentheses"))
Indeed it does. Thanks!
> Left you a star ;)
My plan worked!