[FX.php List] [Off Topic] I need to scoop the entire _POST query and put it inside a variable

DC dan.cynosure at dbmscan.com
Thu Mar 29 08:26:27 MDT 2007


I found this in the section Erik linked to...

This will give you headers sent info without a putting in a PECL 
extension (it says it is built in to PHP):

http://dk2.php.net/manual/en/function.headers-sent.php

dan

Erik Andreas Cayré had written:
> 
> Den 29/03/2007 kl. 14.11 skrev Gjermund Gusland Thorsen:
> 
>> No, then you just get the environmental variables, I would like to
>> scoop the entire request starting with
>>
>> POST /test.php HTTP/1.1
>> Host: somehost
>> Content-Type: text/xml; charset=utf-8
>> Content-Length: {$length}
>> and so on...
>>
>> the variables are in there too I know...
>>
> 
> What would the following get you:
> 
> http://dk2.php.net/manual/en/function.HttpRequest-getRawPostData.php
> 
>> ggt667
>>
>> On 3/29/07, Erik Andreas Cayré <erik at cayre.dk> wrote:
>>>
>>> Den 29/03/2007 kl. 10.33 skrev Gjermund Gusland Thorsen:
>>>
>>> > [Off Topic] I need to scoop the entire _POST query and put it
>>> > inside a variable
>>> > anyone got a clue how do this using php on a receiving page?
>>>
>>> I'm not sure what you mean.
>>> Is this it?
>>>
>>> $var = $_POST;
>>>
>>> ---
>>> Erik Andreas Cayré
>>> Spangsbjerg Møllevej 169
>>> 6705 Esbjerg Ø
>>>
>>> Privat Tel: 75150512
>>> Mobil: 40161183
>>>
>>> ---
>>> »Kun p....sure mennesker kan ændre verden. Innovation skabes ikke af
>>> 'markedsanalyse', men af folk, der er afsindigt irriterede over
>>> tingenes tilstand «
>>> --Tom Peters
>>>
>>> »Hvis du ikke kan forklare det simpelt, forstår  du det ikke godt nok.«
>>> -- Albert Einstein
>>>
>>> »Hvis du ikke har tid til at gøre det rigtigt, hvornår vil du så have
>>> tid til at lave det om?«
>>> -- John Wooden, basketball coach
>>>
>>>
>>> _______________________________________________
>>> FX.php_List mailing list
>>> FX.php_List at mail.iviking.org
>>> http://www.iviking.org/mailman/listinfo/fx.php_list
>>>
>> _______________________________________________
>> FX.php_List mailing list
>> FX.php_List at mail.iviking.org
>> http://www.iviking.org/mailman/listinfo/fx.php_list
> 
> 
> 
> ---
> Erik Andreas Cayré
> Spangsbjerg Møllevej 169
> 6705 Esbjerg Ø
> 
> Privat Tel: 75150512
> Mobil: 40161183
> 
> ---
> »Kun p....sure mennesker kan ændre verden. Innovation skabes ikke af 
> 'markedsanalyse', men af folk, der er afsindigt irriterede over tingenes 
> tilstand «
> --Tom Peters
> 
> »Hvis du ikke kan forklare det simpelt, forstår  du det ikke godt nok.«
> -- Albert Einstein
> 
> »Hvis du ikke har tid til at gøre det rigtigt, hvornår vil du så have 
> tid til at lave det om?«
> -- John Wooden, basketball coach
> 
> 
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
> 


More information about the FX.php_List mailing list