Re: Problems with STDIN and POST data
- From: Todd Wade <waveright@xxxxxxxxx>
- Date: Thu, 14 Feb 2008 01:33:43 -0800 (PST)
On Feb 13, 2:36 pm, xhos...@xxxxxxxxx wrote:
SergioQ <ser...@xxxxxxxxxx> wrote:
Am having some very serious problems reading the POST data that is
being sent to my Perl script. The full code (minus my email address
is below). And essentially what I am getting back via email reports
is that that there is data being sent via POST, and tht it has a
length of 1431. Yet all my attempts to read it are failing
miserably.
use CGI qw(:standard);
...
read STDIN, $serg_bffr, $ENV{'CONTENT_LENGTH'};
...
Since you are using it, why not use CGI to read from STDIN for you?
IIRC It does automatically when use()d in this manner. Thats why
$serg_bffr is empty.
Todd W.
.
- Follow-Ups:
- Re: Problems with STDIN and POST data
- From: Gunnar Hjalmarsson
- Re: Problems with STDIN and POST data
- References:
- Problems with STDIN and POST data
- From: SergioQ
- Re: Problems with STDIN and POST data
- From: xhoster
- Problems with STDIN and POST data
- Prev by Date: FAQ 3.8 Is there a pretty-printer (formatter) for Perl?
- Next by Date: question about "requiring" linux/stat.ph
- Previous by thread: Re: Problems with STDIN and POST data
- Next by thread: Re: Problems with STDIN and POST data
- Index(es):
Relevant Pages
|