Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Javascript interfering with get() method

by waiterm (Acolyte)
on Nov 08, 2004 at 18:00 UTC ( #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? | Other CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2022-07-07 00:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?