Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Javascript interfering with get() method

by waiterm (Acolyte)
on Nov 08, 2004 at 18:00 UTC ( [id://406147]=note: print w/replies, xml ) Need Help??


in reply to Javascript interfering with get() method

Worked around the problem using ::
$URL = "http://www.sweetcombe-ch.co.uk/aspbooking/avail.asp?Propre +f=".$AGENTid."&Classref=".$AGENTid." LOCAL&"; $ua = LWP::UserAgent->new; $ua->cookie_jar(HTTP::Cookies->new(file => "c:/tmp/lib/lwpcookies. +txt", autosave => 1)); $ua->agent("$0/0.1 " . $ua->agent); $ua->agent("Mozilla/8.0"); # pretend we are very capable browser $req = HTTP::Request->new(GET => $URL); $req->header('Accept' => 'text/html'); # send request $res = $ua->request($req); # check the outcome if ($res->is_success) { print $res->content; } else { print "Error: " . $res->status_line . "\n"; }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://406147]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-03-28 17:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found