Re: Reading STDIN on POST queries?

From: Date: Thu, 04 Jan 2001 22:46:51 +0000
Subject: Re: Reading STDIN on POST queries?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-32753@lists.php.net to get a copy of this message
Yes. Use the constants describe in http://php.net/fopen Or... Hmm, maybe you are asking about $REQUEST_URI?... Look at the output from <?php phpinfo();?> and see if the data you want is there. If not, look at httd.conf and see why it's not sending it on. ----- Original Message ----- From: "Jeff P" <jeffp-php@outofservice.com> Newsgroups: php.general Sent: Thursday, January 04, 2001 3:00 PM Subject: [PHP] Reading STDIN on POST queries? > > Hello, > > Is there a way to read STDIN directly (ie, without > having PHP 4.0.4 parsing it for encoded > variable/value pairs) in a cgi-based install of > PHP? > > Details: > > - Shockwave client is connecting to web server > with a URL that contains session ID and an asset > tag (say, "/test.php?SID=blabblahblah&ID=42") and > POSTing a raw text string (say "hello world", but > NOT "string=hello%20world") > > - PHP 4.0.4 running as CGI, not mod_php (sigh). > Other php files on the site require variables in > both GET and POST methods. > > I've spent a fair amount of time poking around > track_vars and similar things, none of which apply > in the newer versions of PHP. Is direct access to > STDIN no longer available in HTTP environments? > (Should I run off to Perl/C to do this? ;-) Any > help would be greatly appreciated! > > best, > Jeff > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#32753) next »