[Openstack] swift urlencode

pf shineyear shinepf at gmail.com
Tue Dec 6 23:45:10 UTC 2011

hi all , i just found that swift use urllib.quote and urllib.unquote to
process request url.

but in php urlencode or rawurlencode process result is very different from

for example:

org:  http://www.brighthost.com/test space~.html

php urlencode:  http%3A%2F%2Fwww.brighthost.com%2Ftest+space%7E.html

php rawurlencode: http%3A%2F%2Fwww.brighthost.com%2Ftest%20space~.html

python quote:  http%3A//www.brighthost.com/test%20space%7E.html

so , if you want to send a request to swift, you'd better write a encode
funtion by yourself......
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20111207/92027e22/attachment.html>

More information about the Openstack mailing list