Chris, As part of my registration process on my Plone site, I need to make a make a URL connection to a script on a remote site which returns some information. Then I save that information in my database and email it to the user. Thanks, Joshua -----Original Message----- From: Chris Withers [mailto:chris@simplistix.co.uk] Sent: Thursday, March 31, 2005 1:50 PM To: Joshua Jacobson Cc: zope@zope.org Subject: Re: [Zope] HTTPSConnection Python 2.3.4 Step back a bit: what are you trying to do and wha tare you trying to do it? ;-) Chris Joshua Jacobson wrote:
On the same machine, my script works in python 2.3.4 outside of zope, but it doesn't work in python 2.3.4 within zope as an external script. There I get "sslerror: The read operation has timed out."
Here's the script:
import httplib, urllib Action = 'Create' CreateFunction = 'Create using Function' WLP = '123' WLPPW = '456' params = urllib.urlencode({'CreateFunction':CreateFunction, 'Action':Action, 'WLP':WLP, 'WLPPW':WLPPW, 'ClientLoginId':ClientLoginID, 'ClientPassword':'ClientPassword'}) headers = {"Content-type": "application/x-www-form-urlencoded", "Accept": "text/plain"} conn = httplib.HTTPSConnection("xxxxx.xxxx.com") conn.request("POST", "/ClientReg.asp", params, headers) response = conn.getresponse() data = response.read()
print data conn.close()
Why I am I getting different response from within Zope versus without?
Thanks,
Joshua
---------------------------------------------------------------------- --
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
-- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk