I don't want to append my fields to a URL and use the GET method for the second script. I want to invisibly transfer my fields to the second script by POST.
I tried:
read ( STDIN, $buffer, $ENV{CONTENT_LENGTH} );
print STDIN $buffer;
print "Location: [anotherdomain.com...]
but that didn't seem to make the fields available to the second script.
How can I stuff the input buffer so that the second script can be pre-populated?
[search.cpan.org...]
I am not familiar with how to use the module myself.
To answer the OP, if you want to submit the form to another site using a POST, you'll have to have your CGI do it and then send the output to the screen. You'd also have to fix up the links on the returned webpage.
LWP or Mech will do it fairly easily, though it's not one of those things I'd ever want to have to do.
Sean
use WWW::Mechanize;
so I guess it's not installed on my server.
It looks like it will do the job but before I ask my host to install it, can anyone tell me if it will simulate the same thing as:
print "Location: [domain.com...]
I want the browser to actually display whatever the resulting page is after submitting that form just as if I did it manually.
Keep in mind that the resulting page may actually be dynamically generated from the script and therefore won't actually have a physical URL that I can manually traverse to.
Will it physically change pages in my browser?