Dear Monks,
I have a perl-Mechanize script running on my server that works perfectly. It's a very simple script that reads in some POST variables, then grabs one of my blog pages and submits the values in comment form. I have gotten it to work on my server, but I need to put the script now on a different server and am having problems with it.

When I run the script in the command line on the new server (with hard coded values), it works fine. But if I call it as a form 'action' method from a website, the script returns an internal server error. It's the exact same script but it runs differently on two different servers. I checked the versions of all three of the libraries that it uses:

LWP::Simple
WWW::Mechanize
CGI
HTTP::Cookies

And have updated all of these libraries on the new server so that I now have the latest version of these libs.

Could it be a setting in Apache that is causing the problem? If so, what should I look for? I need to get this to work on my new server and am not sure how to go about solving this.


In reply to Script works differently on two different servers by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.