Mystery Repost

Discussion in 'Perl' started by bjh, Jan 13, 2004.

  1. bjh

    bjh Guest

    ....
    my $q = new CGI;
    ....
    my $pr = getNextPage();
    ....
    print $q->redirect($pr);
    exit;
    ....

    If $pr is null or is the same script that's currently executing, the
    script executes again with all of the querystring parameters
    available. How is it that the original querystring parameters are
    available to the script on subsequent executions, and they aren't
    available if you redirect to another script as opposed to redirecting
    to itself?

    If I:
    print "Content-type:text/html\n\n";
    print $q->redirect($pr);

    The url with the querystring attached is printed as if it were a GET
    request, even if the original was a POST. Provided $pr is null.
     
    bjh, Jan 13, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. valentin tihomirov

    another array ranges mystery

    valentin tihomirov, Jun 18, 2005, in forum: VHDL
    Replies:
    2
    Views:
    481
    Mike Treseler
    Jun 18, 2005
  2. John K. Humkey

    sed regexp mystery

    John K. Humkey, Jul 8, 2003, in forum: Perl
    Replies:
    0
    Views:
    2,050
    John K. Humkey
    Jul 8, 2003
  3. Todd Plambeck

    Mystery Error

    Todd Plambeck, Jul 15, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    510
    Victor Garcia Aprea [MVP]
    Jul 15, 2003
  4. Jim Hammond

    datagrid template column binding mystery

    Jim Hammond, Nov 24, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    548
    Jim Hammond
    Nov 24, 2003
  5. David Laub

    Resource File mystery entries

    David Laub, Feb 19, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    503
    David Laub
    Feb 23, 2004
Loading...

Share This Page