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

Sorry...it has come to my attention that my question above is just a bit too vague in it's request.

I want to be able to pass the second script call to the currently processing script; this will use LWP to get() the page generated by the second script call.

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

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

Replies are listed 'Best First'.
Re: Re: Script call with arguments in a script call with arguments...Possible?
by Caillte (Friar) on May 24, 2002 at 09:14 UTC

    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.

      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