[drakma-devel] Re: drakma help
Edi Weitz
edi at agharta.de
Thu May 10 00:05:50 UTC 2007
Hi Cyrus,
On Wed, 9 May 2007 16:27:57 -0700, Cyrus Harmon <cyrus at cyrusharmon.org> wrote:
[Cc to mailing list.]
> So I've been trying to do http-requesting with DRAKMA and I see some
> weird results:
>
> (drakma:http-request "http://patft.uspto.gov/netacgi/nph-Parser?
> Sect1=PTO2&Sect2=HITOFF&u=%2Fnetahtml%2FPTO%2Fsearch-
> adv.htm&r=80&f=G&l=50&d=PTXT&s1=affymetrix&p=2&OS=affymetrix&RS=affymetr
> ix")
Seems Paul Graham's Arc server is not the only one which sends wrong
line endings. Luckily, Chunga was modified to cope with that just two
days ago... :)
CL-USER 15 > (let ((chunga:*accept-bogus-eols* t)
(drakma:*header-stream* *standard-output*))
(nth-value 1 (drakma:http-request "http://patft.uspto.gov/netacgi/nph-Parser?Sect1=PTO2&Sect2=HITOFF&u=%2Fnetahtml%2FPTO%2Fsearch-adv.htm&r=80&f=G&l=50&d=PTXT&s1=affymetrix&p=2&OS=affymetrix&RS=affymetrix")))
GET /netacgi/nph-Parser?Sect1=PTO2&Sect2=HITOFF&u=%2Fnetahtml%2FPTO%2Fsearch-adv.htm&r=80&f=G&l=50&d=PTXT&s1=affymetrix&p=2&OS=affymetrix&RS=affymetrix HTTP/1.1
Host: patft.uspto.gov
User-Agent: Drakma/0.7.0 (LispWorks 5.0.2; Windows NT; Windows XP: 5.1 (build 2600) Service Pack 2; http://weitz.de/drakma/)
Accept: */*
Connection: close
HTTP/1.0 200 Script results follow
Server: NetAnswer Server 1.0
Content-Type: text/html
200
Cheers,
Edi.
More information about the Drakma-devel
mailing list