in reply to Re^3: Problem with CGI::Vars
in thread Problem with CGI::Vars
This looks ok, but the function calling looks like, it program some kid:'read_from_client' => <<'END_OF_FUNC', + # Read data from a file handle + sub read_from_client { + my($self, $buff, $len, $offset) = @_; + local $^W=0; # prevent a warning return $MOD_PERL ? $self->r->read($$buff, $len, $offset) : read(\*STDI +N, $$buff, $len, $offset); + } + END_OF_FUNC
This only read ONCE! from stdin and does NOT check how many bytes it read!! :-( So my read function on my kvm machine read only 10000 bytes from 13100 and thats all :-/if ($meth eq 'POST') { + $self->read_from_client(\$query_string,$content_length,0) + if $content_length > 0; + # Some people want to have their cake and eat it too! + # Uncomment this line to have the contents of the query string + # APPENDED to the POST data. + #$query_string .= (length($query_string) ? '&' : '') . $ENV{'QUE +RY_STRING'} if defined $ENV{'QUERY_STRING'}; + last METHOD; + }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Problem with CGI::Vars
by Mr. Muskrat (Canon) on Jun 06, 2011 at 17:20 UTC | |
|
Re^5: Problem with CGI::Vars
by Anonymous Monk on Jun 06, 2011 at 22:27 UTC | |
by Chipper (Initiate) on Jun 07, 2011 at 12:49 UTC | |
by Corion (Patriarch) on Jun 07, 2011 at 13:03 UTC | |
by Chipper (Initiate) on Jun 07, 2011 at 20:25 UTC | |
by Corion (Patriarch) on Jun 07, 2011 at 21:13 UTC | |
| |
by Anonymous Monk on Jun 07, 2011 at 13:08 UTC | |
by Chipper (Initiate) on Jun 07, 2011 at 20:28 UTC | |
by Anonymous Monk on Jun 07, 2011 at 21:58 UTC | |
by Chipper (Initiate) on Jun 07, 2011 at 20:26 UTC | |
by Anonymous Monk on Jun 07, 2011 at 21:59 UTC | |
|
Re^5: Problem with CGI::Vars
by ikegami (Patriarch) on Jun 07, 2011 at 21:58 UTC |