cLive ;-) has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w use strict; use CGI; $|++; # # this is the receiving script run under http # receiving data from an https page - same result # in IE5 and in Mozilla 0.9.5 # my $q = new CGI; print $q->header; # buffer my $buffer = ''; read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'}); print "CONTENT_LENGTH = $ENV{'CONTENT_LENGTH'}\n\n"; # 109 - OK print "Buffer = $buffer\n\n"; # shows $buffer is empty # try to read vars the 'standard' CGI way... for ($q->param()) { print "$_ = ".$q->param($_)."\n"; } # prints nothing
OK, so this is very perplexing. Changing https form method to get sends the data OK, but I don't want to do this unless I have to (apache logging of QS in undesirable, though "workaroundable".
Any thoughts? I'm stumped. I bet this is a very, very simple thing and I'm just blinded to it...
cLive ;-)
-- seek(JOB,$$LA,0);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Bizarre CGI.pm behaviour or just me?
by tachyon (Chancellor) on Feb 16, 2002 at 21:31 UTC | |
|
Re: Bizarre CGI.pm behaviour or just me?
by stephen (Priest) on Feb 16, 2002 at 20:01 UTC | |
|
Re: Bizarre CGI.pm behaviour or just me?
by Dog and Pony (Priest) on Feb 16, 2002 at 20:34 UTC | |
|
(cLive ;-) Re: Bizarre CGI.pm behaviour or just me?
by cLive ;-) (Prior) on Feb 16, 2002 at 22:49 UTC | |
by tachyon (Chancellor) on Feb 17, 2002 at 11:24 UTC | |
|
(cLive ;-) Re: Bizarre CGI.pm behaviour or just me?
by cLive ;-) (Prior) on Feb 16, 2002 at 19:53 UTC |