Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 chanting in the Monastery: (2)
As of 2021-01-24 09:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?