I am starting out with weblocks and trying to make it work together
with hunchentoot (which I use for my production server).
If I just include weblocks in asd file as a dependency, my image
handlers generate different data so no image is shown by Mozilla/IE7.
If I try drakma:http-request that image I get different data too:
1) Hunchentoot, no Weblocks:

(http-request "http://www.mydomain/test/text.img";)
#(255 216 255 224 0 16 74 70 73 70 0 1 1 0 0 1 0 1 0 0 255 254 0 62 67 82 69 65
  84 79 82 58 32 103 100 45 106 112 101 103 32 118 49 46 48 32 40 117 115 105
  110 103 32 73 74 71 32 74 80 69 71 32 118 54 50 41 44 32 100 101 102 97 117
  108 116 32 113 117 97 108 105 116 121 10 255 219 0 67 0 8 6 6 7 6 5 8 7 7 7 9
.................................................

((:DATE . "Wed, 25 Feb 2009 23:26:36 GMT") (:SERVER . "Hunchentoot 0.15.7")
 (:CONTENT-TYPE . "image/jpeg")
 (:LAST-MODIFIED . "Wed, 25 Feb 2009 23:26:36 GMT") (:PRAGMA . "no-cache")
 (:CACHE-CONTROL
  . "no-store, no-cache, must-revalidate, post-check=0, pre-check=0")
 (:EXPIRES . "Sat, 26 Jul 1997 05:00:00 GMT")
 (:VIA . "1.1 www.yourspecialtee.com") (:CONNECTION . "close")
 (:TRANSFER-ENCODING . "chunked"))
#<PURI:URI http://www.yourspecialtee.com/test/text.img>
#<FLEXI-IO-STREAM {1A2C3C79}>
T
"OK"

2) Hunchentoot with Weblocks
(http-request "http://www.mydomain/test/text.img";)
#(195 191 195 152 195 191 195 160 0 16 74 70 73 70 0 1 1 0 0 1 0 1 0 0 195 191
  195 190 0 62 67 82 69 65 84 79 82 58 32 103 100 45 106 112 101 103 32 118 49
  46 48 32 40 117 115 105 110 103 32 73 74 71 32 74 80 69 71 32 118 54 50 41 44
  32 100 101 102 97 117 108 116 32 113 117 97 108 105 116 121 10 195 191 195
  155 0 67 0 8 6 6 7 6 5 8 7 7 7 9 9 8 10 12 20 13 12 11 11 12 25 18 19 15 20
............................................................................
200
((:DATE . "Wed, 25 Feb 2009 23:28:41 GMT") (:SERVER . "Hunchentoot 0.15.7")
 (:CONTENT-TYPE . "image/jpeg")
 (:LAST-MODIFIED . "Wed, 25 Feb 2009 23:28:41 GMT") (:PRAGMA . "no-cache")
 (:CACHE-CONTROL
  . "no-store, no-cache, must-revalidate, post-check=0, pre-check=0")
 (:EXPIRES . "Sat, 26 Jul 1997 05:00:00 GMT")
 (:VIA . "1.1 www.yourspecialtee.com") (:CONNECTION . "close")
 (:TRANSFER-ENCODING . "chunked"))
#<PURI:URI http://www.yourspecialtee.com/test/text.img>
#<FLEXI-IO-STREAM {D4684A1}>
T
"OK"


As you can see there are some patterns of bytes similar in both cases,
but the case with Weblocks gives out some stream which probably
doesn't constitue a valid jpeg image.
I am using SBCL 1.0.23 on Ubuntu and stable Weblocks.
I wonder what it might be?
Another curious thing is when I make a dependency on Weblocks, the
resulting sbcl image that I save makes much smaller footprint both in
memory and on the hard drive. Quite contrary to common sense :)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"weblocks" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/weblocks?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to