Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!weretis.net!feeder4.news.weretis.net!news.teledata-fn.de!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="ISO-8859-1" Message-ID: <20412327.jQFHGDmDgm@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Tue, 28 Aug 2012 15:50:09 +0200 User-Agent: KNode/4.4.11 Content-Transfer-Encoding: 7Bit X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&. <4919648.gLsDIqzOUs@PointedEars.de> <2094311.UPhlsrQmMF@PointedEars.de> <7781613.3ztUY42lFh@PointedEars.de> <6503747.LP8xm1ciM4@PointedEars.de> Followup-To: comp.lang.php MIME-Version: 1.0 Lines: 32 NNTP-Posting-Date: 28 Aug 2012 15:50:10 CEST NNTP-Posting-Host: 20a31e0f.newsspool3.arcor-online.net X-Trace: DXC=3nNJPnYUd\QHigV@eW57PQMcF=Q^Z^V3X4Fo<]lROoRQ8kF 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
) 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 > , > 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 (404-comp.)