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 = ''
 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 = "">

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 )

Reply via email to