Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Re: Script call with arguments in a script call with arguments...Possible?

by Caillte (Friar)
on May 24, 2002 at 09:14 UTC ( #169006=note: print w/ replies, xml ) Need Help??


in reply to Re: Script call with arguments in a script call with arguments...Possible?
in thread Script call with arguments in a script call with arguments...Possible?

You have really answered your own question. Provided your script is run on an account with net access and provided your script can run within the normal CGI restrictions (server timeouts etc) then, yes, you can use LWP to get the second script from within the first.

Remember, to the OS the site is being hosted on, any CGI program is essentially just a script/program with it's output piped into another program. When you view it like that you can realise that there is little stopping you from doing anything! ;)


This page is intentionally left justified.


Comment on Re: Re: Script call with arguments in a script call with arguments...Possible?
Re: Re: Re: Script call with arguments in a script call with arguments...Possible?
by S_Shrum (Pilgrim) on May 24, 2002 at 19:17 UTC

    My past experience with CGI and URI's of this nature was that it couldn't be done in the manner stated above (in a standard URL). The problem was the CGI would rip the second 'nested' arguments as arguments for the first.

    Right? As a result, what must be done to perserve the 'nested' call in its entirity. Let me pose another example

    http://www.mysever.com/cgi-bin/myscript.pl?this=that&tisk=task&test=http://www.mysever.com/cgi-bin/myscript.pl?&tisk=that&this=task&foo=bar

    Note that &foo=bar is meant to be a outer script call argument and not a nested script call argument. So I guess I need to know if I can pass the nested URL as a string that CGI won't rip apart. ala:

    http://www.mysever.com/cgi-bin/myscript.pl?this=that&tisk=task&test='http://www.mysever.com/cgi-bin/myscript.pl?&tisk=that&this=task'&foo=bar

    Yes, I know I can use LWP to process the nested call (this is what I want to do), but how do I pass this into the script call without CGI ripping it apart.

    ======================
    Sean Shrum
    http://www.shrum.net

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (9)
As of 2014-12-25 12:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (160 votes), past polls