OK, so maybe I'm too close, but here's a summary:
- form submits from https page to http script
- content length is found ok, but when read, nothing's there?
#!/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);
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.