How to post username and password to .cgi form

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • just4priya
    New Member
    • Sep 2007
    • 19

    How to post username and password to .cgi form

    Hie,

    I am trying to post username and password to a .cgi form from a console based unix terminal.
    Is it possible for posting data using Perl script?

    Deperately looking out for suggestions/help..

    Thanks
  • KevinADC
    Recognized Expert Specialist
    • Jan 2007
    • 4092

    #2
    Are you running a CGI script? Normally you would use a CGI form to pass data via HTTP to a CGI script. You can pass data to a perl script via the command line, the simplest way:
    Code:
    perl script.pl var1 var2 var3
    but the perl script has to be written to get data from the command line and not from a CGI form. You can use the CGI module in 'debug' mode to run CGI scripts from the command line and pass in data. See the CGI module documentation for details.

    Comment

    • just4priya
      New Member
      • Sep 2007
      • 19

      #3
      Actually its .cgi form..and i was to post login data for authentication.
      Could we download the cgi form and execute it ???

      I have never tried my hands on cgi & perl scripting..
      Please advise

      Comment

      • KevinADC
        Recognized Expert Specialist
        • Jan 2007
        • 4092

        #4
        Originally posted by just4priya
        Actually its .cgi form..and i was to post login data for authentication.
        Could we download the cgi form and execute it ???

        I have never tried my hands on cgi & perl scripting..
        Please advise

        You lost me.Forms don't do anything except send data, you need a script on the server to process the data. If you already have a script that does some kind of authentication all you need to do is create a form and send the data to the script. If you do not have a script you will have to write one.

        Comment

        Working...