CGI.pm/modperl2 and intermittent missing POST data

Ask a Question related to PERL Modules, Design and Development.

  1. #1

    Default CGI.pm/modperl2 and intermittent missing POST data

    After upgrading to Apache2 with modperl2 I have found that a CGI script
    I have used without any trouble for years has develped the annoying
    problem of intermittently returning to the initial page.
    As far as I can figure out the POST data is not getting to the script.

    The problem is intermittent and sometimes takes 10 minutes of using the
    script to get the anomaly, I say anomaly as there is no error messages
    in the Web server log and the perl script executes without error simply
    providing the login screen as no POST data gets through, refreshing the
    browser once or twice will result in the POST data making it to the
    script.

    After allot of googling there seems to be a quite few 'missing POST
    data' results, some are related to older CGI.pm modules, however I have
    the very latest CGI.pm 3.20 , installed to try and fix the problem with
    no luck, other results vaguely mentioned CGI.pm and modperl2 not
    playing nicely like this article
    [url]http://aspn.activestate.com/ASPN/Mail/Message/modperl/1871810[/url]
    which says "something is funky with the way that CGI.pm is initialising
    itself under mod_perl" which isnt much help.

    There seems to be no definitive answer or fix for this, so far my
    choices are:
    Hopefully someone can help me out otherwise I am going to have to
    downgrade my server and/or rewite allot of code.

    lobo_nz Guest

  2. Similar Questions and Discussions

    1. #22427 [Com]: Missing Form Post Data
      ID: 22427 Comment by: zero at tilt dot eu dot org Reported By: jroland at uow dot edu dot au Status: No...
    2. #24013 [Com]: Missing Form Post Data
      ID: 24013 Comment by: michael dot lindner at gmlindner dot de Reported By: webmaster at dtshowtime dot lu dot eu dot org...
    3. #24753 [Opn->Fbk]: missing character in POST data
      ID: 24753 Updated by: iliaa@php.net Reported By: robin at newloop dot com -Status: Open +Status: ...
    4. #24753 [Opn->Bgs]: missing character in POST data
      ID: 24753 Updated by: derick@php.net Reported By: robin at newloop dot com -Status: Open +Status: ...
    5. #24753 [Fbk->Opn]: missing character in POST data
      ID: 24753 User updated by: robin at newloop dot com Reported By: robin at newloop dot com -Status: Feedback...
  3. #2

    Default Re: CGI.pm/modperl2 and intermittent missing POST data

    Well, I removed mod-perl2 and reverted the mod-perl scripts to CGI and
    all works great, I still want to know what is going on with CGI.pm and
    mod_perl2 :\

    lobo_nz Guest

  4. #3

    Default Re: CGI.pm/modperl2 and intermittent missing POST data


    lobo_nz wrote:
    > Well, I removed mod-perl2 and reverted the mod-perl scripts to CGI and
    > all works great, I still want to know what is going on with CGI.pm and
    > mod_perl2 :\
    Nine times out of ten this is caused by the CGI script remembering
    variables from a previous session, since mod_perl keeps the CGI program
    in memory and the script no longer initialized between calls. Standard
    mod_perl technique requires that you always turn on strict pragma (use
    strict; ) and develop with warnings pragma (use warnings;).

    Good information on porting CGI to mod_perl is under
    [url]http://perl.apache.org/docs/1.0/guide/porting.html[/url]

    Tom

    Tom Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139