|
From: | Sunjoong Lee |
Subject: | Re: A question about http-get of (web client) |
Date: | Fri, 27 Apr 2012 23:20:01 +0900 |
(use-modules ((srfi srfi-11) #:select (let-values))((web uri) #:select (string->uri))((web client) #:select (http-get)))(let-values (((res-headers res-body)(http-get (string->uri "http://www.gnu.org/home.html")#:extra-headers(acons 'Accept "text/html"(acons 'Accept-Charset "ISO-8859-1"(acons 'Accept-Language "en-US"'()))))))(display res-body)(newline))Above code makes an error:...In web/response.scm:187: 2 [read-response #<input-output: socket 5>]In web/http.scm:218: 1 [lp ((server . "Apache/2.2.14") (date . #))]184: 0 [read-header #<input-output: socket 5>]
[Prev in Thread] | Current Thread | [Next in Thread] |