Re: [Web-SIG] newbie help with httpsconnection

2008-02-10 Thread Jean-Paul Calderone
On Sat, 9 Feb 2008 23:56:00 -0800 (PST), Jeff Peery [EMAIL PROTECTED] wrote:
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')

The first parameter to HTTPSConnection is supposed to be a hostname.

Jean-Paul
___
Web-SIG mailing list
Web-SIG@python.org
Web SIG: http://www.python.org/sigs/web-sig
Unsubscribe: 
http://mail.python.org/mailman/options/web-sig/archive%40mail-archive.com


[Web-SIG] newbie help with httpsconnection

2008-02-09 Thread Jeff Peery
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.___
Web-SIG mailing list
Web-SIG@python.org
Web SIG: http://www.python.org/sigs/web-sig
Unsubscribe: 
http://mail.python.org/mailman/options/web-sig/archive%40mail-archive.com