in reply to How to Post a HTTP Request for a JSON web page?

Below is the code I tried but got "500 Internal Server Error".

Did you try to search for the error message?

 [perldoc://500 internal server error] 500 internal server error -> perlfaq9#My CGI script runs from the command line but not the browser. (500 Server Error) -> Troubleshooting Perl CGI scripts

Does that answer your question?

Replies are listed 'Best First'.
Re^2: How to Post a HTTP Request for a JSON web page?
by vchinnat (Initiate) on Mar 26, 2014 at 07:34 UTC

    No, it didn't help me

      No, it didn't help me

      Why not? Second item is Did you output a valid CGI header first?, do you know what that means?