Re: urllib2 and HTTP 302

2006-06-05 Thread John J. Lee
[EMAIL PROTECTED] (John J. Lee) writes: > Laszlo Nagy <[EMAIL PROTECTED]> writes: > [...] > > how can I return the redirection URL? > > I tried to get this information from the exception but I could not. Is > > it possible to read it from the openerdirector? > > Any suggestions? > > > > > >

Re: urllib2 and HTTP 302

2006-06-01 Thread John J. Lee
Laszlo Nagy <[EMAIL PROTECTED]> writes: [...] > how can I return the redirection URL? > I tried to get this information from the exception but I could not. Is > it possible to read it from the openerdirector? > Any suggestions? > > > try: >self.post_multipart( >

urllib2 and HTTP 302

2006-05-26 Thread Laszlo Nagy
Hello, The code below uses urllib2 and build_opener. Having this code fragment, how can I return the redirection URL? I tried to get this information from the exception but I could not. Is it possible to read it from the openerdirector? Any suggestions? try: self