The problem was that sometimes the site responded with just headers so that content-length was 0.
In this case the http-request returned request equal to nil and that confused me (I was expecting a zero length string).
Now I look at the (header-value :content-length headers) and if it's zero, I get all the information I need from (header-value :location headers). I wonder if response should be nil when content-length is 0?
On Fri, 9 May 2008 15:37:47 -0400, "Andrei Stebakov" <lispercat@gmail.com> wrote:If that doesn't help, try to use something like Wireshark. Or,
> I am using drakma-0.11.5 and chunga-0.4.2 on Ubuntu with
> sbcl-1.0.15. I am going to use *header-stream* to see if it gives
> some clue.
alternatively, try with another Lisp and/or from another OS.
Sometimes that makes a difference. (Which would be a bug in Drakma
because it shouldn't.)
_______________________________________________
drakma-devel mailing list
drakma-devel@common-lisp.net
http://common-lisp.net/cgi-bin/mailman/listinfo/drakma-devel