I am running the perl script via a shell script which just calls the perl script. This works fine from the command line. If I take the actual post command out of the perl script, then it also works fine when being called from the browser (i.e. all messages are displayed correcty and the script completes). However, when the post is run via the browser, I get the 501 error.
The web server is on the same system as the scripts. The browser is on a PC.
I am wondering if it is having problems loading the Crypt::SSLeay module when run from the browser. If i explicitly load this with "use", then the program crashes with no error messages when run from the browser, but works when run from the command line.
This is how the shell script is called via the browser
htp.formOpen(curl=><address>script_name.sh?
file_name,cmethod=>'POST');
htp.formSubmit(NULL,'Upload Text File to Secure Server');
The script_name is the shell script which calls the perl script, and file_name is the file parameter to upload. The perl script gets the file_name paramter passed to it OK, as it can print it out
Maybe there is a better way of doing this directly from the browser, or maybe something needs configuring on the browser for https?
Thanks
Jonathan
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.