[Yum-devel] [UG] url encoding advice

seth vidal skvidal at linux.duke.edu
Wed Dec 21 06:41:27 UTC 2005


On Tue, 2005-12-20 at 15:47 -0700, Michael Stenner wrote:
> OK, someone just filed a bug against urlgrabber that brings up an
> interesting issue: pre-encoded urls.
> 
>   http://devel.linux.duke.edu/bugzilla/show_bug.cgi?id=539
> 
> The summary: if you give urlgrabber an encoded url, it re-encodes it.
> For example:
> 
>   a) (raw url)    http://place.com/foo bar
>   b) (encoded)    http://place.com/foo%20bar
>   c) (re-encoded) http://place.com/foo%2520bar
> 
> urlgrabber gets (b), see's the "%" and encodes that as %25.  It seems
> other tools will be clever and try to detect whether something needs
> to be reencoded.  What's the best way to do that?

I think the most expected behavior is, of course, that urlgrabber will
magically handle all items. :)

I'm guessing that they have a regex looking for certain items to
determine if its encoded. I'm sure it's not error-free, ie:

what happens if http://place.com/foo%20bar is the raw url. Do wget and
curl vomit about it?


-sv





More information about the Yum-devel mailing list