← Back to team overview

openstack team mailing list archive

swift urlencode

 

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
python's

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......