Hello All,

I'm facing some strange issue with Perl CGI. I'm using Apache2 as the webserver (i also use mode_perl2).

The Problem is whenever i request the CGI URL (http://mydomai.com/cgi-bin/t2/detail.cgi?adId=9) , the page not properly refreshing or responding.
First time it reads the param and displays '9' then if i change the param value to 2 (or somthing else) it again displays 9 if i wait for sometime and hit the url it shows 2. again if the change the param value to 5 it displays 2 or 9...
basically the problem is CGI/apache stores the old value and display the same for a while or soemthing like that..
Any one please help to resolve this problem?

If i do CNTR+F5 it works properly..

I'm using the below CGI script. (Note: I also use startup.pl script to load some modules while apache start)
use CGI qw(:cgi-lib :standard); use CGI::Carp qw ( fatalsToBrowser ); use JSON::Parse 'parse_json'; use REST::Client; my $client = REST::Client->new(); $client->setHost('http://localhost'); my $query = new CGI(); $query->import_names('Q'); my $adId = $Q::adId; #my $adId = $query->param("adId"); print "Content-type: text/html\n\n"; print $adId;

In reply to Perl CGI - Param value not refreshing 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.