Created
October 16, 2015 18:24
-
-
Save SaitoAtsushi/be750bcdfb99fc596461 to your computer and use it in GitHub Desktop.
Saggitarius 0.6.9 で変なメッセージが出る
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
(import (rnrs) (rfc http) (rfc base64)) | |
(define (basic-auth-string user password) | |
(string-append "Basic " | |
(base64-encode-string (string-append user ":" password)))) | |
(define (access) | |
(receive (status header body) | |
(http-get "htaccess.cman.jp" | |
"/sample_go/basic/" | |
:secure #t | |
:authorization (basic-auth-string "guest" "password")) | |
body)) | |
(display (access)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment