python - Urllib trouble across platforms -
on linux, urllib.urlopen("https://www.facebook.com/fql.php?query=select first_name user")
have spaces automatically quoted , run smoothly.
(by way, url fictional)
however on mac, not case. somehow url not escaped, , error thrown. have checked both python versions @ least 2.6 , version of urllib 1.17
is bug?
urlopen documentation doesn't promise escape anything. use urllib.quote() escape yourself.
Comments
Post a Comment