Russell Blau wrote:
"MinuteElectron" minuteelectron@googlemail.com wrote:
Marco Schuster wrote:
I suspect it are the +es in the "text" field, AFAIR these should be %20, right?
Perhaps; " " may be encoded as "+" in URL query strings, and most URL encoding functions do this. But in post strings maybe "+" is not acceptable. I will look to see if your suggestion fixes this.
On http://www.epstone.net/~andrew/wiki/api.php, the query string with "+"s in it works as expected.
Russ
Note the difference between "post" and "query" string -- I never said that "+" is not acceptable in query strings (quite the opposite, in fact). But I believe that in post strings "+" is not allowed, please correct me if I am wrong, of course.
MinuteElectron.
On Thu, Jun 5, 2008 at 2:15 PM, MinuteElectron minuteelectron@googlemail.com wrote:
Note the difference between "post" and "query" string -- I never said that "+" is not acceptable in query strings (quite the opposite, in fact). But I believe that in post strings "+" is not allowed, please correct me if I am wrong, of course.
As far as I'm aware, the use of + for spaces in URL-encoded strings is entirely non-standard in any context. I'm pretty sure the RFC only specifies percent encoding.
"Simetrical" Simetrical+wikilist@gmail.com wrote in message news:7c2a12e20806051154k4019de7bp82884b93cc6b428f@mail.gmail.com...
As far as I'm aware, the use of + for spaces in URL-encoded strings is entirely non-standard in any context. I'm pretty sure the RFC only specifies percent encoding.
This is quoted from the W3 consortium recommendation at http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.1: "application/x-www-form-urlencoded
This is the default content type. Forms submitted with this content type must be encoded as follows:
1.. 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'). 2.. The control names/values are listed in the order they appear in the document. The name is separated from the value by `=' and name/value pairs are separated from each other by `&'. " Obviously, the "+" signs are not the issue.
wikitech-l@lists.wikimedia.org