Re: getting debug from urllib2

2006-07-31 Thread Ben Edwards
Thanks a lot, hove managed to get it working: opener = urllib2.build_opener(urllib2.HTTPHandler(debuglevel=1)) Ben On Mon, 2006-07-31 at 12:33 -0400, Chris Lambacher wrote: > On Mon, Jul 31, 2006 at 02:43:36PM +0100, Ben Edwards wrote: > > Have been experimenting with HTTP stuff in python 2.4 an

Re: getting debug from urllib2

2006-07-31 Thread Peter Otten
Ben Edwards wrote: > Have been experimenting with HTTP stuff in python 2.4 and am having a > problem getting debug info. If I use utllib.utlopen I get debug but if I > user utllib2 I do not. Below is the probram and the output I am > getting. > > Any insight? Use the source :-) urllib2.build_

Re: getting debug from urllib2

2006-07-31 Thread Chris Lambacher
On Mon, Jul 31, 2006 at 02:43:36PM +0100, Ben Edwards wrote: > Have been experimenting with HTTP stuff in python 2.4 and am having a > problem getting debug info. If I use utllib.utlopen I get debug but if I > user utllib2 I do not. Below is the probram and the output I am > getting. > > Any insi

getting debug from urllib2

2006-07-31 Thread Ben Edwards
Have been experimenting with HTTP stuff in python 2.4 and am having a problem getting debug info. If I use utllib.utlopen I get debug but if I user utllib2 I do not. Below is the probram and the output I am getting. Any insight? Ben * Code * import urllib, urllib2, httplib url = 'http://www.mo