Created
February 4, 2012 22:30
-
-
Save rlb3/1740724 to your computer and use it in GitHub Desktop.
url auth
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (let* ((my-auth '(("localhost:80" ("iOS Pratice" . "cm9iZXJ0OmtvbWJhdA==")))) | |
| (url-basic-auth-storage 'my-auth)) | |
| (switch-to-buffer (url-retrieve-synchronously "http://localhost/~robert/pratice"))) | |
| (defmacro web-auth (&rest body) | |
| `(let* ((my-auth '(("localhost:80" ("iOS Pratice" . "cm9iZXJ0OmtvbWJhdA==")))) | |
| (url-basic-auth-storage 'my-auth)) | |
| ,@body)) | |
| (macroexpand-all '(web-auth | |
| (switch-to-buffer (url-retrieve-synchronously "http://localhost/~robert/pratice")))) | |
| (web-auth | |
| (switch-to-buffer (url-retrieve-synchronously "http://localhost/~robert/pratice"))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment