Hello. With a pearl is not yet familiar at all . There is the simplest html-form, previously validated by js, not the essence. The request goes to the file testing.cgi (Perl-script), which should do something and execute (display a message, for example, in a browser window):

#!perl.exe -w print "Content-type: text/html\n\n"; print "HELLO, WORLD!!!"; 

However, the listing itself is displayed in the browser window, not the result of the script. I work with an openserver, did everything (+ -, there are some discrepancies in connection with the date of the article) for this article

Well, yes, if someone wants to advise some useful source of information or throw it in itself regarding the work of the bundle of pearls + browser - I will be glad, because here ya teapot =))

Server configuration (apache-2.2_server.conf): https://drive.google.com/open?id=0B4Lgg48y5uNaSGtnTGN3X1NBT1k

UPD! so, sir, I'm an idiot ... I just ran the file itself in the address bar, not through the form. when sending form data to this file (via action), I get: enter image description here

BUT if you specify the .pl extension in action, then everything works. on a lab the cgi-script is necessary.

  • Give the complete data: what exactly is in your configs. - PinkTux
  • one
    And where does the "form data" that you have in the title of the question. You still have the same problem with the settings of the web server (there is no ExecCGI permission on the folder where the script is or the handler for the .cgi extension is not registered), and not with receiving the request parameters. Try to have one question here about something specific. - Mike
  • threw the link to a config in a question. @Mike, understand you, sorry) - Anque
  • that then the link does not open :( - Mike
  • 2
    Try this: #!perl -w (without .exe). - PinkTux

1 answer 1

Error in #!perl.exe -w , need to write without .exe

 #!perl -w print "Content-type: text/html\n\n"; print "HELLO, WORLD!!!"; 

Acknowledgments: PinkTux