SSL w/ urllib
Jp Calderone
exarkun at flashmail.com
Sat Apr 22 20:54:13 EDT 2000
Andrew Kuchling wrote:
>
> Jp Calderone <exarkun at flashmail.com> writes:
> > f = urllib.urlopen('https://www.mudprovider.com/cgi-bin/printvars.cgi',
> > params)
> > TypeError: too many arguments; expected 2, got 3
>
> You've found a bug. I've checked a fix into the CVS tree, so you can
> either update, or just apply the patch below. Thanks for the bug
> report!
>
> --amk
>
> [snip patch]
Wow, cool :) And like 5 hours from report to solution. How I love
open source :)
Here's a follow up question. I applied the patch and it doesn't
raise an exception anymore, but it sits there for about 3 or 4
minutes, then returns an "addinfourl" object that looks like
this:
>>> print f.headers
None
>>> print f.url
http://www.mudprovider.com/cgi-bin/printvars.cgi
>>> print f.read()
>>>
If I switch it over to a GET request, it works fine, but I
really need POST to work. Is this another bug or am I doing
something wrong?
Also, if there's a page that explains all this somewhere, I'll
happily take just a link to it and work this all out by myself :)
Thanks, Jp
--
"Pascal is Pascal is Pascal is dog meat."
-- M. Devine and P. Larson, Computer Science 340
--
12:35am up 25 days, 5:42, 0 users, load average: 0.02, 0.02, 0.00
More information about the Python-list
mailing list