[Yum-devel] URLGrabber and escaping characters in http request

Toshio Kuratomi a.badger at gmail.com
Mon Sep 24 14:54:23 UTC 2012


On Mon, Sep 24, 2012 at 03:21:25AM -0400, Zdenek Pavlas wrote:
> > Any idea how to make it work.
> 
> Add the quote=0 option.
> 
> urlgrabber.urlgrab('http://localhost:2000/A,B,C')
> => GET /A%2CB%2CC HTTP/1.1
> 
> urlgrabber.urlgrab('http://localhost:2000/A,B,C', quote=0)
> => GET /A,B,C HTTP/1.1
> 
Note that this turns off quoting altogether.  So, if there's other urls than
the one in the original post, be careful to quote those characters in the
url string passed in.

-Toshio
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.baseurl.org/pipermail/yum-devel/attachments/20120924/94010ad8/attachment.asc>


More information about the Yum-devel mailing list