[Web-SIG] newbie help with httpsconnection
Jeff Peery
jeffpeery at yahoo.com
Sun Feb 10 08:56:00 CET 2008
Hello,
I'm stumped. I'm trying to run the following bit of code in a cgi script.
httpServ = httplib.HTTPSConnection('https://secure.authorize.net')
# connect to gateway
httpServ.connect()
# serve request
params = urllib.urlencode(fm, '|')
httpServ.request('POST', '/gateway/transact.dll', params)
# close connection
httpServ.close()
I get this error when httpSerc.connect() is called:
gaierror: (-2, 'Name or service not known')
args = (-2, 'Name or service not known')
what am I doing wrong? Thanks!
Jeff
---------------------------------
Never miss a thing. Make Yahoo your homepage.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/web-sig/attachments/20080209/00d20532/attachment.htm
More information about the Web-SIG
mailing list