Re: read-response-body of (web response) depends on Content-Length but ...

2012-04-27 Thread Sunjoong Lee
I cancel a previous patch because Ian Price solve it nice. Daniel Hartwig told me that; thanks Daniel. I cannot solve http://lists.gnu.org/archive/html/guile-user/2012-04/msg00034.html yet but can solve http://lists.gnu.org/archive/html/guile-user/2012-04/msg00041.htmlwith Ian's solution, http://l

Re: read-response-body of (web response) depends on Content-Length but ...

2012-04-27 Thread Daniel Hartwig
On 27 April 2012 16:28, Sunjoong Lee wrote: > I googled and found http://tools.ietf.org/html/rfc2616 . > > In a section of "4.4 Message Length": >   2.If a Transfer-Encoding header field (section 14.41) is present and >      has any value other than "identity", then the transfer-length is >      d

Re: read-response-body of (web response) depends on Content-Length but ...

2012-04-27 Thread Sunjoong Lee
The urgent patch posted before makes a bug, so I cancel it and repost: ## cut here ## --- /usr/share/guile/2.0/web/response.scm 2012-04-22 04:36:06.753878689 +0900 +++ response.scm 2012-04-27 19:54:55.539304271 +0900 @@ -217,13 +217,16 @@ (define (read-response-body r) "Reads th

Re: read-response-body of (web response) depends on Content-Length but ...

2012-04-27 Thread Sunjoong Lee
Below is a urgent patch of response.scm: --- /usr/share/guile/2.0/web/response.scm 2012-04-22 04:36:06.753878689 +0900 +++ response.scm 2012-04-27 18:49:16.499881816 +0900 @@ -217,13 +217,16 @@ (define (read-response-body r) "Reads the response body from @var{r}, as a bytevector. Returns @co

Re: read-response-body of (web response) depends on Content-Length but ...

2012-04-27 Thread Sunjoong Lee
I googled and found http://tools.ietf.org/html/rfc2616 . In a section of "4.4 Message Length": 2.If a Transfer-Encoding header field (section 14.41) is present and has any value other than "identity", then the transfer-length is defined by use of the "chunked" transfer-coding (section

read-response-body of (web response) depends on Content-Length but ...

2012-04-27 Thread Sunjoong Lee
Hello, I cannot solve http://lists.gnu.org/archive/html/guile-user/2012-04/msg00034.html yet. This is a potentially related problem but I'm not sure; (use-modules ((srfi srfi-11) #:select (let-values)) ((web uri) #:select (string->uri)) ((web client) #:select (htt