urllib2: problem of handling space in parameter

2009-02-07 Thread rdmurray
Quoth Muddy Coder : > Hi Folks, > > I encrountered a problem of using urllib2: the space handling. Look at > the code below: > > import urllib2 > url = r'http://somedomain.com/a.cgi?name=muddy coder&password=foobar > cgi_back = urllib2.urlopen(url).read() > > In this cgi_back, I saw field passwo

urllib2: problem of handling space in parameter

2009-02-07 Thread Muddy Coder
Hi Folks, I encrountered a problem of using urllib2: the space handling. Look at the code below: import urllib2 url = r'http://somedomain.com/a.cgi?name=muddy coder&password=foobar cgi_back = urllib2.urlopen(url).read() In this cgi_back, I saw field password worked fine, but field name not, only