It works!
Thanks a lot!
On 6/5/08, drakma-devel-request@common-lisp.net < drakma-devel-request@common-lisp.net> wrote:
Send drakma-devel mailing list submissions to drakma-devel@common-lisp.net
To subscribe or unsubscribe via the World Wide Web, visit http://common-lisp.net/cgi-bin/mailman/listinfo/drakma-devel or, via email, send a message with subject or body 'help' to drakma-devel-request@common-lisp.net
You can reach the person managing the list at drakma-devel-owner@common-lisp.net
When replying, please edit your Subject line so it is more specific than "Re: Contents of drakma-devel digest..."
Today's Topics:
- Handling chunked content (Nico Garcia Belmonte)
- Re: Handling chunked content (Edi Weitz)
Message: 1 Date: Thu, 5 Jun 2008 02:43:48 +0200 From: "Nico Garcia Belmonte" philogb@gmail.com Subject: [drakma-devel] Handling chunked content To: drakma-devel@common-lisp.net Message-ID: 4e2f5dc00806041743p7b2e6d29kc36dd8e84d4630ff@mail.gmail.com Content-Type: text/plain; charset="iso-8859-1"
Hi,
...I'm kind of a newbie, so please forgive me if I make stupid questions. I've been using drakma to request html pages and everything seems to work fine.
I'm now using drakma to make a request to the new youtube json api, and I get chunked content:
(http-request "
http://gdata.youtube.com/feeds/api/videos/-/Music/?max-results=10&vq=bus... ")
...chunked content...
((:CONTENT-TYPE . "application/json; charset=UTF-8") (:CACHE-CONTROL . "max-age=0, must-revalidate, no-transform, private") (:GDATA-VERSION . "1.0") (:LAST-MODIFIED . "Thu, 05 Jun 2008 00:20:27 GMT") (:TRANSFER-ENCODING . "chunked") (:DATE . "Thu, 05 Jun 2008 00:20:27 GMT") (:SERVER . "GFE/1.3") (:CONNECTION . "Close")) #<PURI:URI
http://gdata.youtube.com/feeds/api/videos/-/Music/?max-results=10&vq=bus...
#<FLEXI-STREAMS:FLEXI-IO-STREAM {B90E249}>
The thing is that I need it to be a string in order to decode to json format using the cl-json lisp package. I tried changing the external-output parameter without any good results.
Do you have some advice on how I could serialize this content?
Thanks at advanced!
Your library is great!
Nico.
-- I would never die for my beliefs because I might be wrong.
Bertrand Russell