Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Dynamicly Execute URL without redirection

by tcf22 (Priest)
on Feb 11, 2004 at 16:00 UTC ( #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
Node Status?
node history
Node Type: note [id://328297]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2020-05-30 05:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (171 votes). Check out past polls.

    Notices?