[drakma-devel] Bug report: Overeager encoding of parameters
Edi Weitz
edi at agharta.de
Mon Jul 7 16:41:29 UTC 2008
On Mon, 7 Jul 2008 09:08:18 -0700 (PDT), Eric Benson <eric_a_benson at yahoo.com> wrote:
> RFC 2396 has been superseded by RFC 3986, although that does not
> affect this case.
RFC 2396 is what is quoted in RFC 2616, so that's why I was referring
to it.
> http://www.w3.org/Addressing/URL/4_URI_Recommentations.html
>
> "Within the query string, the plus sign is reserved as shorthand
> notation for a space. Therefore, real plus signs must be encoded.
That's what Drakma does.
> For the record, neither IE nor Firefox encodes plus signs when they
> are entered as part of the query.
They encode them if they are GET parameters, like Drakma. Open the
attached HTML page in IE or Firefox and enter "a+b", then press the
Return key.
> It seems to me that http-request should make encoding of the
> parameters optional, since a client program may need to deal with
> encoded as well as unencoded strings. Otherwise, a caller of
> http-request that already has encoded parameters must explicitly
> decode them before calling.
No, you are free to build the URL for Drakma yourself.
Edi.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/drakma-devel/attachments/20080707/04ce47d3/attachment.html>
More information about the Drakma-devel
mailing list