Re: urllib2: handle an error (302)

2007-09-11 Thread Antoni Villalonga
2007/9/11, O.R.Senthil Kumaran: > > When urllib2 libs visit a URL with 302 error follow the location > > automatically. I need to get the location in order to get the full > > URL (not relative URL) parsing html code. > > urllib2 automatically handles the 302 redirection. What you get as the end

Re: urllib2: handle an error (302)

2007-09-11 Thread O.R.Senthil Kumaran
> When urllib2 libs visit a URL with 302 error follow the location > automatically. I need to get the location in order to get the full > URL (not relative URL) parsing html code. urllib2 automatically handles the 302 redirection. What you get as the end result is the 'redirected' page. - If al

Re: urllib2: handle an error (302)

2007-09-11 Thread Antoni Villalonga
2007/9/11, Lawrence D'Oliveiro: > In message <[EMAIL PROTECTED]>, Antoni > Villalonga wrote: > > > There are any way to handle a 302 error? > > I assume the answer you seek is here > . > -- > http://mail.python.org/mailman/listinfo/python-list

Re: urllib2: handle an error (302)

2007-09-10 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Antoni Villalonga wrote: > There are any way to handle a 302 error? I assume the answer you seek is here . -- http://mail.python.org/mailman/listinfo/python-list

urllib2: handle an error (302)

2007-09-10 Thread Antoni Villalonga
Hi! First of all sorry for my English, it's not my language... When urllib2 libs visit a URL with 302 error follow the location automatically. I need to get the location in order to get the full URL (not relative URL) parsing html code. You can see an example here: http://friki.org/302.php rais