[drakma-devel] http-request fails because of puri...
Andrei Stebakov
lispercat at gmail.com
Fri Feb 6 18:15:51 UTC 2009
Hi
I have a link like
"http://www.test.com/aaa.aspx?par1=http://www.test2.com/bbb.aspx?par2=http://www.test3.com"
(I changed names but the structure is the same)
For me it's a completely legit request as those nested requests create
the right cookie environment for the subsequent calls.
If I paste it in a browser, it'll give me the right page with the
right cookies set.
When I use (http-request link) with the link
puri complains:
Parse error:URI
"http://www.test.com/aaa.aspx?par1=http://www.test2.com/bbb.aspx?par2=http://www.test3.com"
contains illegal character #\? at position 63.
[Condition of type PURI:URI-PARSE-ERROR]
I can repro this error with:
(puri:parse-uri
"http://www.test.com/aaa.aspx?par1=http://www.test2.com/bbb.aspx?par2=http://www.test3.com")
Apparently puri doesn't like the "?" in the parameter section of the
first request (before par2). Does it make the whole request invalid?
How can I get around this issue?
Thank you,
Andrei
More information about the Drakma-devel
mailing list