On 02-04-2009 at 09:36, Héctor López wrote:
> This RFC says the opposite:
> 
> http://www.rfc-editor.org/rfc/rfc1738.txt
> 
> Although, truth to be told, later RFCs are a bit obscure about when to use
> which encoding. Is there any RFC that specifically supersedes this one?

I know that this RFC is updated by this one:
http://www.ietf.org/rfc/rfc2396.txt

Note however, that RFC 1738 is still valid.


> Under my point of view, a link is not a form, and so,
> "x-www-form-urlencoded" is not the proper way to encode a URL *in a link*.
> 
> What do you think?

A link in itself is not a form. However, a link can contain a query part,
which can be constructed from form data. This is the way form submission
works when the action is "GET" instead of "POST".

As a reference, I use the HTML 4.01 specification at:
http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.13

In ѕection 17.13.3, processing form data, it says in step four:
        If the method is "get" and the action is an HTTP URI, the user agent
        takes the value of action, appends a `?' to it, then appends the form
        data set, encoded using the "application/x-www-form-urlencoded" content
        type. The user agent then traverses the link to this URI. In this
        scenario, form data are restricted to ASCII codes.

And below that (17.13.4, form content types) says this about
x-www-form-urlencoded:
        Control names and values are escaped. Space characters are replaced by
        `+', and then reserved characters are escaped as described in [RFC1738],
        section 2.2: Non-alphanumeric characters are replaced by `%HH', a 
percent
        sign and two hexadecimal digits representing the ASCII code of the
        character. Line breaks are represented as "CR LF" pairs (i.e., 
`%0D%0A').


Oscar

-- 
   ,-_
  /() ) Oscar Westra van holthe - Kind      http://www.xs4all.nl/~kindop/
 (__ (
=/  ()  Don't let your boss fuck you; that's anti-capitalist.

------------------------------------------------------------------------------
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to