CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
Perl - Handling POST Requests

 



tsantana
New User

May 31, 2010, 2:49 PM

Post #1 of 1 (456 views)
Perl - Handling POST Requests Can't Post

Hello you folks,

On a later version of Perl, I was able to get the contents of a POST request on a web server by using an instance of CGI as :


Code
my $reqContents = new CGI(HTTP::Request->content) ;


and then you be able to print it using:


Code
print $reqContents->as_string;


However perl's current version I keep getting an error when calling the "content" method from the HTTP::Request object. Could you please let me know if there's any work around to get the contents instead of thru the method above?

Thank you,
TS

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives