[Nottingham] Perl web automation question ref javascript:dt_pop
Michael Erskine
msemtd at yahoo.co.uk
Fri Sep 10 09:00:29 BST 2004
On Thursday 09 September 2004 11:13, Phil Court wrote:
> Hi all,
> I am trying to write a script to retrieve a web page. the script is
> detailed below. My problem is as follows.
> The script can successfully obtain web pages such as http://news.bbc.co.uk
> and http://www.dreamteamfc.com
> However it fails on the following URL
> http://www.dreamteamfc.com/dtfc04/servlet/PostPlayerList?catidx=1&title=GOA
>LKEEPERS&gameid=167
> The returned web page (saved in myOUT.txt) contains
> <HTML><HEAD><SCRIPT
> LANGUAGE="JAVASCRIPT">location.replace("http://www.dreamteamfc.com");</SCRI
>PT></HEAD></HTML>
Hi Phil,
The page is being redirected - it seems that the site requires registration so
some form of cookie will be needed by your user agent. Check the cookie jar
of your browser.
BTW: please don't post in HTML - I only replied because I'm bored :)
Michael.
More information about the Nottingham
mailing list