I wonder what am I missing when a call like (http-request "http://lisp.org/") returns a binary array:
#(60 116 105 116 108 101 62 114 101 100 105 114 101 99 116 46 46 46 60 47 116 105 116 108 101 62 60 109 101 116 97 32 104 116 116 112 45 101 113 117 105 118 61 34 82 101 102 114 101 115 104 34 32 99 111 110 116 101 110 116 61 34 48 59 32 117 114 108 61 47 97 108 117 47 104 111 109 101 34 62) 200 ((:DATE . "Sat, 07 Mar 2009 22:56:52 GMT") (:CONNECTION . "Close") (:SERVER . "AllegroServe/1.2.50") (:TRANSFER-ENCODING . "chunked")) #<PURI:URI http://lisp.org%3E #<FLEXI-IO-STREAM {107E2C79}> T " OK"
Before I upgraded to the new hunchentoot and drakma and chunga it would give me a text string. Thank you, Andrei
I had a similar experience until I upgraded to the latest versions of some of the supporting libraries. I had to upgrade a number of them, so unfortunately I can't point to exactly which one. Perhaps FLEXI-STREAMS and underlying TRIVIAL-GRAY-STREAMS.
On Sat, Mar 7, 2009 at 5:58 PM, Andrei Stebakov lispercat@gmail.com wrote:
I wonder what am I missing when a call like (http-request "http://lisp.org/") returns a binary array:
#(60 116 105 116 108 101 62 114 101 100 105 114 101 99 116 46 46 46 60 47 116 105 116 108 101 62 60 109 101 116 97 32 104 116 116 112 45 101 113 117 105 118 61 34 82 101 102 114 101 115 104 34 32 99 111 110 116 101 110 116 61 34 48 59 32 117 114 108 61 47 97 108 117 47 104 111 109 101 34 62) 200 ((:DATE . "Sat, 07 Mar 2009 22:56:52 GMT") (:CONNECTION . "Close") (:SERVER . "AllegroServe/1.2.50") (:TRANSFER-ENCODING . "chunked")) #<PURI:URI http://lisp.org%3E #<FLEXI-IO-STREAM {107E2C79}> T " OK"
Before I upgraded to the new hunchentoot and drakma and chunga it would give me a text string. Thank you, Andrei
drakma-devel mailing list drakma-devel@common-lisp.net http://common-lisp.net/cgi-bin/mailman/listinfo/drakma-devel
I got bordeaux-threads_0.5.1 chunga-1.0.0 cl-who-0.11.1 drakma-1.0.0 flexi-streams-1.0.7 hunchentoot-1.0.0 trivial-gray-streams-2008-11-02 usocket-0.4.1
Still got that binary...
On Sat, Mar 7, 2009 at 6:04 PM, Joshua TAYLOR tayloj@cs.rpi.edu wrote:
I had a similar experience until I upgraded to the latest versions of some of the supporting libraries. I had to upgrade a number of them, so unfortunately I can't point to exactly which one. Perhaps FLEXI-STREAMS and underlying TRIVIAL-GRAY-STREAMS.
On Sat, Mar 7, 2009 at 5:58 PM, Andrei Stebakov lispercat@gmail.com wrote:
I wonder what am I missing when a call like (http-request "http://lisp.org/") returns a binary array:
#(60 116 105 116 108 101 62 114 101 100 105 114 101 99 116 46 46 46 60 47 116 105 116 108 101 62 60 109 101 116 97 32 104 116 116 112 45 101 113 117 105 118 61 34 82 101 102 114 101 115 104 34 32 99 111 110 116 101 110 116 61 34 48 59 32 117 114 108 61 47 97 108 117 47 104 111 109 101 34 62) 200 ((:DATE . "Sat, 07 Mar 2009 22:56:52 GMT") (:CONNECTION . "Close") (:SERVER . "AllegroServe/1.2.50") (:TRANSFER-ENCODING . "chunked")) #<PURI:URI http://lisp.org%3E #<FLEXI-IO-STREAM {107E2C79}> T " OK"
Before I upgraded to the new hunchentoot and drakma and chunga it would give me a text string. Thank you, Andrei
drakma-devel mailing list drakma-devel@common-lisp.net http://common-lisp.net/cgi-bin/mailman/listinfo/drakma-devel
--
Joshua Taylor tayloj@cs.rpi.edu, jtaylor@alum.rpi.edu
"A lot of good things went down one time, back in the goodle days." John Hartford
drakma-devel mailing list drakma-devel@common-lisp.net http://common-lisp.net/cgi-bin/mailman/listinfo/drakma-devel
On Sat, Mar 7, 2009 at 8:00 PM, Andrei Stebakov lispercat@gmail.com wrote:
I got bordeaux-threads_0.5.1 chunga-1.0.0 cl-who-0.11.1 drakma-1.0.0 flexi-streams-1.0.7 hunchentoot-1.0.0 trivial-gray-streams-2008-11-02 usocket-0.4.1
Still got that binary...
(To be clear, I'm not a DRAKMA dev; I'm just chiming in since I had a similar issue.) What platform are you using? Since you mention usocket, I'd guess you're not on LispWorks. I ran into old versions of libraries when I was running on CCL, but after updating all the way tough, ended up with:
DRAKMA 1.0.0 CL+SSL (no version number) FLEXI-STREAMS and FLEXI-STREAMS-TEST 1.0.7 TRIVIAL-GRAY-STREAMS 2008-11-02 CFFI 0.10.4 BABEL 0.3.0 ALEXANDRIA 0.0.0 TRIVIAL-FEATURES 0.4 USOCKET 0.4.1 SPLIT-SEQUENCE 20011114.1 CHUNGA 1.0.0 CL-BASE64 and CL-BASE64-TESTS 3.3.2 PURI and PURI-TESTS 1.5.1
(and, for the record , under LispWorks it's (with the same version numbers):
DRAKMA FLEXI-STREAMS and FLEXI-STREAMS-TEST TRIVIAL-GRAY-STREAMS CHUNGA CL-BASE64 and CL-BASE64-TESTS PURI and PURI-TESTS)
I guess I can't really be of any help, but maybe if any of those version numbers look newer than the ones you've got, it can be a starting point for you.
Best luck to you, //JT