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
_______________________________________________
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 )

Reply via email to