Re: urllib confusion

2009-02-18 Thread Steven D'Aprano
On Wed, 18 Feb 2009 01:17:40 -0700, Tim H wrote: > When I attempt to open 2 different pages on the same site I get 2 copies > of the first page. ?? ... > Any thoughts? What does your browser do? What does your browser do if you turn off cookies, re-directions and/or referers? -- Steven -- h

urllib confusion

2009-02-18 Thread Tim H
When I attempt to open 2 different pages on the same site I get 2 copies of the first page. ?? ie links = [ 'http://site.org/foo/1/bar', 'http://site.org/foo/2/bar' ] for url in links: print "url:", url f = urlopen(url, params) print "Actual url:", f.geturl()