[Tutor] Using urllib with https
Randall Randall
wolfkin@freedomspace.net
Thu, 27 Jul 2000 13:26:11 -0400 (EDT)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I've been using Python for some cgi, and needed
to use "https". So I built Python1.6a2, and
while testing my script, I got this:
- ---------begin output--------------------
Traceback (most recent call last):
File "egsell.py", line 54, in ?
t = urllib.urlopen('https://www.foo.bar/cgi/action.exe', encspendform)
File "/usr/local/lib/python1.6/urllib.py", line 62, in urlopen
return _urlopener.open(url, data)
File "/usr/local/lib/python1.6/urllib.py", line 163, in open
return getattr(self, name)(url, data)
TypeError: too many arguments; expected 2, got 3
- ---------end output----------------------
Any idea why this would happen? I'm really
hoping that this isn't a bug in the library
itself... The variable "encspendform" is a
url-encoded string passed to the cgi on the
server.
BTW, I replaced the actual site name with
"foo.bar", since it didn't even get that far,
I don't think.
Thanks!
- --
Randall (wolfkin@freedomspace.net).
Crypto key: www.freedomspace.net/~wolfkin/crypto.text
On a visible but distant shore, a new image of man;
The shape of his own future, now in his own hands.-- Johnny Clegg.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.1 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE5gHCz8SWFrcg/i1gRAn/bAJ9wY1+7YkMB/OK99L7no4B8HlHxRgCffCnc
KjuQXiGwxgYmzUXG46SwjcE=
=p6EJ
-----END PGP SIGNATURE-----