Page redirect - how to handle?
Posted: 2006-10-28 07:10:33
there is very unusual behaviour of one site, which my script is referring to - when I ask for search (request for page 'http://somesite.com/search.php?s=MovieName'), if more than one movie is found, then everything is OK, but if only one movie is found, than I receive another page with movie details. So,
1) in first case I receive Search results and page 'http://somesite.com/search.php?s=MovieName';
2) in second case I receive Movie Details and another page
'http://somesite.com/movies/123'.
I can detect which page is loaded (by page content), but for further processing I should know URL of loaded page! How can I do it? Could somebody help me pls?
1) in first case I receive Search results and page 'http://somesite.com/search.php?s=MovieName';
2) in second case I receive Movie Details and another page
'http://somesite.com/movies/123'.
I can detect which page is loaded (by page content), but for further processing I should know URL of loaded page! How can I do it? Could somebody help me pls?