Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #6868
| Message-ID | <6503747.LP8xm1ciM4@PointedEars.de> (permalink) |
|---|---|
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Organization | PointedEars Software (PES) |
| Date | 2012-08-26 21:43 +0200 |
| Subject | Re: XMLHttpRequest: POST with Data |
| Newsgroups | comp.lang.javascript, comp.lang.php |
| References | (3 earlier) <k1af83$q69$1@speranza.aioe.org> <2094311.UPhlsrQmMF@PointedEars.de> <k1d9g5$2jn$2@speranza.aioe.org> <7781613.3ztUY42lFh@PointedEars.de> <k1dntg$dho$1@news.albasani.net> |
| Followup-To | comp.lang.php |
Cross-posted to 2 groups.
Followups directed to: comp.lang.php
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.
> or any other function capable of reading from streams.
Could you provide an example, please?
F'up2 comp.lang.php
PointedEars
--
Danny Goodman's books are out of date and teach practices that are
positively harmful for cross-browser scripting.
-- Richard Cornford, cljs, <cife6q$253$1$8300dec7@news.demon.co.uk> (2004)
Back to comp.lang.php | Previous | Next — Next 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