1

Is there any way to retrieve the parameters and values using POST method?

http://hostname/cgi-bin/params?name1=value1&name2=value2&;..

I need to write a CGI script to receive the parameters and values using POST method from the below url.

Host: hostname.com
name1=value1&name2=value2

Please help me to do this.

user3666197
  • 1
  • 6
  • 50
  • 92
Vasanth
  • 365
  • 2
  • 13

1 Answers1

1

If they are in the URL, it's GET, not POST.

For GET: How can I read the URL parameter in a Perl CGI program?

For POST: how to get POST values in perl

Community
  • 1
  • 1
Croises
  • 18,570
  • 4
  • 30
  • 47