urllib question
paul at fizzylab.com
paul at fizzylab.com
Sat Jun 17 02:23:47 EDT 2000
Why does the first example work, but not the second (actual
URL not supplied, but you get the idea)?
I assume something to do with query string values and
encoding: even if I was right, I have been unsuccessful at
making it work.
#!/usr/bin/python
import string, urllib
u = urllib.urlopen(string.join(["http://cnn.com/",
"index.html"]))
print u.read()
u = urllib.urlopen(string.join(["http://some.host.com/",
"montstrousQueryString?withParameters"]))
print u.read()
My second day trying to use python . . . excuse my
thickness of skull.
More information about the Python-list
mailing list