Re: Content

From: Date: Tue, 15 Jan 2002 16:22:55 +0000
Subject: Re: Content
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-80575@lists.php.net to get a copy of this message
Grab the latest version of PHP. There is a new php.ini directive called always_populate_raw_post_data which when turned on forces all post data to be available through the $HTTP_RAW_POST_DATA variable. -Rasmus On Tue, 15 Jan 2002, Daniel C. Sobral wrote: > I have a little problem I have been trying to solve, but so I haven't > had any luck so far. > > A product we use sends an HTTP Post request when certain events happen. > We want to write a script which will process this request and take > certain actions. Unfortunately, Some of the data comes not as Post > variables, but as part of the Content of the HTTP request. Here is a sample: > > *** Beginning *** > POST > > /~rafael/sms_mail/cliente.dcs.php?NotificationProtocolVersion=1.0.0.0&ApplicationName=NPlex&ApplicationVersion=6.0.037&RequestType=NewMsg&RequestTime=01/15/2002%2014:08:23&ServerType=email&EMailAddress=jalexander@o2.net.br&MessageType=email&From=%22%5C%22Daniel%20C.%20Sobral%5C%22%22%20%3Cdcs@tcoip.com.br%3E&Subject=TST26&MessageReceivedTime=01/15/2002%2014:08:23 > HTTP/1.0 > Host: 10.9.35.7 > Date: Tue, 15 Jan 2002 14:08:23 GMT > Content-Type: text/plain > Content-Length: 43 > Connection: close > > First line. > > Middle line. > > Last Line. > *** End *** > > The content is everything between First Line and Last Line, inclusive. > This is passed through stdin by Apache. I tried reading from > php://stdin, but it returns nothing to me. > > Any clues as to how I might be able to access that? Or any authoritative > answer that this is not possible with PHP? > > Thanks for any help, > > -- > Daniel C. Sobral > dcs@tcoip.com.br > > > -- > 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 (#80575) next »