On Tue, Sep 25, 2012 at 09:26:08PM +0100, andrea wrote: > On 09/25/2012 02:34 AM, Toshio Kuratomi wrote: > > http://www.ietf.org/rfc/rfc2396.txt > > > > See Sections 2.1, 2.4.2 > > > > > > """ > > In some cases, data that could be represented by an unreserved > > character may appear escaped; for example, some of the unreserved > > "mark" characters are automatically escaped by some systems. If the > > given URI scheme defines a canonicalization algorithm, then > > unreserved characters may be unescaped according to that algorithm. For > > example, "%7e" is sometimes used instead of "~" in an http URL path, but the > > two are equivalent for an http URL. > > """ > > > > Your server is not handling this correctly. > > wish it was mine :-) I could just grab what I need directly. > > > > > > > -Toshio > > > I understand, but I am just point out, that many other clients (python's > urllib2 included) > seem to interpret the standard in a consistent different way. > Interesting to read the comment about wget implementation > This is only partially true wrt python's stdlib. urllib2 passes urls through without escaping anything. It is up to the caller of the urllib2 functions to escape the url. urllib2.quote() is provided for this purpose. Using it on the path elements result in commas being escaped.
-Toshio
pgptsaHa9CkLv.pgp
Description: PGP signature
_______________________________________________ Yum-devel mailing list [email protected] http://lists.baseurl.org/mailman/listinfo/yum-devel
