problem using urllib2: \n
John J. Lee
jjl at pobox.com
Wed Sep 24 13:08:59 EDT 2003
bmiras at yahoo.com writes:
> jjl at pobox.com (John J. Lee) wrote in message news:<874qz3cqs2.fsf at pobox.com>...
[...]
> I've done a wrong copy/paste
> there is no additional \n after Authorization field
> but there an additional \n for Proxy-Authorization
>
> I've used HTTPBasicAuthHandler since you said the code is different
> and it worked fine!!!
> I think the conclusion is that the strip call in the ProxyHandler code
> is missing. Is it necessary to report it as a bug?
Yes. Please report it to sourceforge, remembering to check that
nobody else already has. The correct version of the duplicated code
should be factored out into a function.
To help future users, it would be really useful if you could do this
too:
[...]
> > If you get this working, please look at the doc patch here
> >
> > http://www.python.org/sf/798244
> >
> >
> > test it, and post a comment to say whether or not it's correct (and
> > which examples you tried -- preferably all of them ;).
Won't take you long, since you already have your code working.
John
More information about the Python-list
mailing list