in reply to Handling Javascript with LWP::UserAgent

The simplest solution is to go directly to
http://www.GIDEONonline.net/authx.php?user=metalib&browser_ok=1
instead of
http://www.GIDEONonline.net/loginx.php?user=metalib
The Javascript on the page you retrieved is simply redirecting you to this location. And LWP::UserAgent does not understand this, as it has no embedded Javascript engine :)

Generally, if you want to process pages containing JavaScript with LWP::UserAgent, you must carefully read all javascript on the pages you retrieve and decide what workaround to choose in every certain case.

In the worst cases Javascript module is the only solution.

Replies are listed 'Best First'.
Re^2: Handling Javascript with LWP::UserAgent
by mrguy123 (Hermit) on Jul 10, 2006 at 09:23 UTC
    Thanks, it worked like a charm. I didn't exactly get the retrieved page, but I did get a cookie I needed for the search page. Problem solved.