Berkeley CSUA MOTD:Entry 26073
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/05/24 [General] UID:1000 Activity:popular
5/24    

2002/10/2 [Computer/SW/Languages/Web, Computer/SW/Languages/Perl] UID:26073 Activity:high
10/1    I am trying to modify an application with a pretty complicated post and
        i seem to be missing the variable names or the values that i got from
        just reading the source.  Is there a way I can change the file it posts
        to to "myfile.[php||pl||sh||whatever" and have "myfile" just dump
        exactly what is being posted to it?
        \_ if you're using the CGI library in perl,
           you can dump out all post values the page is receiving
           easily, i think the syntax is something like
           print $query->dump; - danh
            \_ Undefined subroutine CGI::dump
                \_ and actually i just tried the below
                   on a different machine and i got the same error,
                   it works on soda though - danh
                   \_ Was it a linux box? Mine is.  But your are right it works
                      fine on soda and i can just post to a .cgi here. - tnx.
                \_      #!/usr/bin/perl

                        use strict;
                        use CGI;
                        my $query = new CGI;
                        print $query->header();
                        print $query->dump;