Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #6898
| Message-ID | <20412327.jQFHGDmDgm@PointedEars.de> (permalink) |
|---|---|
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Organization | PointedEars Software (PES) |
| Date | 2012-08-28 15:50 +0200 |
| Subject | Re: XMLHttpRequest: POST with Data |
| Newsgroups | comp.lang.php |
| References | (5 earlier) <k1d9g5$2jn$2@speranza.aioe.org> <7781613.3ztUY42lFh@PointedEars.de> <k1dntg$dho$1@news.albasani.net> <6503747.LP8xm1ciM4@PointedEars.de> <k1dvjk$2gj$1@speranza.aioe.org> |
| Followup-To | comp.lang.php |
Followups directed to: comp.lang.php
Christoph Becker wrote:
> Thomas 'PointedEars' Lahn wrote:
>> Stefan Weiss wrote:
>>> On 2012-08-26 19:15, Thomas 'PointedEars' Lahn wrote:
>>>> Christoph Becker wrote:
>>>>> So for POST requests, when the Content-Type is text/plain (e.g. by
>>>>> using <form enctype="text/plain">) even non-ASCII characters in the
>>>>> body can be sent directly. But not all server side "languages" will
>>>>> handle this (e.g. PHP will not fill in the $_POST variable).
>>>> PHP is not supposed to fill the $_POST array then; there are no
>>>> parameters. Indeed, apparently there is no trivial way, if any, to
>>>> retrieve the message body with PHP then [...]
>>> file_get_contents("php://input")
>> Thanks, unfortunately it requires allow_url_fopen=1.
>
> I've just found $HTTP_RAW_POST_DATA
> <http://www.php.net/manual/en/reserved.variables.httprawpostdata.php>,
> which seems to be a viable alternative for Content-Type "text/plain", if
> allow_url_fopen=0.
Thank you, WFM.
Regards,
PointedEars
--
Use any version of Microsoft Frontpage to create your site.
(This won't prevent people from viewing your source, but no one
will want to steal it.)
-- from <http://www.vortex-webdesign.com/help/hidesource.htm> (404-comp.)
Back to comp.lang.php | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: XMLHttpRequest: POST with Data Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-08-26 21:43 +0200
Re: XMLHttpRequest: POST with Data Christoph Becker <cmbecker69@gmx.de> - 2012-08-26 22:06 +0200
Re: XMLHttpRequest: POST with Data Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-08-28 15:50 +0200
csiph-web