On Sat, Nov 15, 2003 at 07:42:51AM -0500, aschmidt@fredericksburg.com wrote:
import urllib
URLsite = "http://username:password@zserver:8080/everything/else/on/path"
usock = urllib.urlopen(URLsite) data = usock.read() usock.close()
Someone else please correct me if I am wrong but we decided not to use something similar because if for some reason the site you are trying to urlopen is down, etc. then it never really times out...just sits and spins and locks that zope thread. Do that a few times and your whole site is down.
Right, if you are connecting from zope to another server. However, I think the original poster was connecting to zope from a plain old python program on a non-zope system.
Not sure if a try: would work here but that might be worth a shot. But I guess if the urlopen never comes back then the try: would just try forever.
yes it would. -- Paul Winkler http://www.slinkp.com Look! Up in the sky! It's PSEUDO BUSHY CHAIR KING LEAR ! (random hero from isometric.spaceninja.com)