Skip to content

Instantly share code, notes, and snippets.

@SaitoAtsushi
Created October 16, 2015 18:24
Show Gist options
  • Save SaitoAtsushi/be750bcdfb99fc596461 to your computer and use it in GitHub Desktop.
Save SaitoAtsushi/be750bcdfb99fc596461 to your computer and use it in GitHub Desktop.
Saggitarius 0.6.9 で変なメッセージが出る
(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