Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Dynamicly Execute URL without redirection

by tcf22 (Priest)
on Feb 11, 2004 at 16:00 UTC ( [id://328297]=note: print w/replies, xml ) Need Help??


in reply to Dynamicly Execute URL without redirection

You have to specify the whole URL so
my $response =LWP::UserAgent->new->get("http://www.mydomain.com/myperl +script.pl?var1=1&var2=2");
should be what you want.

UPDATE:
If you just want to run the script, then LWP::UserAgent may be overkill. LWP::Simple will probably do what you want.
use LWP::Simple; my $data = get("http://www.mydomain.com/myperlscript.pl?var1=1&var2=2" +);

- Tom

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-19 04:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found