����, 10 ������� 2002, 12:46, Nadav Har'El ���: > On Sat, Aug 10, 2002, Shlomi Fish wrote about "Re: White spaces in URLs.":
> > > IIRC, spaces in URLs are encoded as %20. > > > > Or as plus signs (+). > > If I remember correctly (and please correct me if I'm wrong because I also > don't have the HTTP/URI RFCs handy), "+" isn't a synonym for a space. > > Only some *CGI scripts* convert a + to a space, similarly to the way they > also treat "&" specially, but you can only use such a "+" after the "?" of > a GET request to a CGI, and only if the CGI knows this transformation. > > For example, try browsing > http://nadav.harel.org.il/hi%20there > > And it will tell you: > "The requested URL /hi there was not found on this server." > > with the %20 converted to a space. With a +, this doesn't happen: > > "The requested URL /hi+there was not found on this server." Not exactly, but close enough a description. in the URI only url encoding is valid (i.e - converting non-alphanumeric characters to their hex representation in an 8 bit character set preceded by a %), while in the query string - the content of the GET or POST request, spaces may alternativly represented by a plus ('+') sign. -- Oded ::.. ================================================================To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
