Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > de.comp.lang.php > #3938

Re: Wie komme ich bei HTTP-Post-Request mit Content-Type: multipart/form-data; boundary=cbd60835-f15e-49e4-b0a2-6c569cea3a01 an den POST-Body

Path csiph.com!weretis.net!feeder4.news.weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups de.comp.lang.php
Subject Re: Wie komme ich bei HTTP-Post-Request mit Content-Type: multipart/form-data; boundary=cbd60835-f15e-49e4-b0a2-6c569cea3a01 an den POST-Body
Supersedes <22639244.uJSROzYlgV@PointedEars.de>
Date Tue, 16 Aug 2016 11:09:11 +0200
Organization PointedEars Software (PES)
Lines 21
Message-ID <7111183.N28Cn9JBL0@PointedEars.de> (permalink)
References <nos8cv$fci$1@news.albasani.net> <nosj5h$b50$1@solani.org> <nouem6$vj8$1@news.albasani.net>
Reply-To Thomas 'PointedEars' Lahn <php@PointedEars.de>
Mime-Version 1.0
Content-Type text/plain; charset="UTF-8"
Content-Transfer-Encoding 8Bit
X-Trace solani.org 1471338559 20344 eJwFwQkBwDAIA0BLNBBY5fAU/xJ2R/XjHeZ043IROZgNikCfva4V5CTcH0pQfe4mQz8xxLUfJBwQ6w== (16 Aug 2016 09:09:19 GMT)
X-Complaints-To abuse@news.solani.org
NNTP-Posting-Date Tue, 16 Aug 2016 09:09:19 +0000 (UTC)
User-Agent KNode/4.14.2
X-NNTP-Posting-Host eJwNyskBwCAIBMCW5NhVykGQ/ktI5j0wCms7QcdgTt6MJ2PtWlrk0fQ13YypG1jtBvmP7SeK+QAr4BFg
X-User-ID eJwNydsBADEEBMCWPMJSTgj9l3A3v2Pq7I3j5sfWNhEnWFjRlONkK1szsPzzbhSh60pHwrONdQRTqJE3T4U+Rb8Vqg==
Cancel-Key sha1:U7hEEU+s0wCfhxoGsdxQSEWFq9c=
Cancel-Lock sha1:7UWzaKbIkgTQizcq/bi3AYLX+1g=
Xref csiph.com de.comp.lang.php:3938

Show key headers only | View raw


Gerome Muent wrote:

if ($security === 0)
{

> Die Lösung für den konkreten Fall war dieser Hack in einer .htaccess:
> SetEnvIf Content-Type ^(multipart/form-data)(.*)
> NEW_CONTENT_TYPE=application/mquest$2 OLD_CONTENT_TYPE=$1$2
> RequestHeader set Content-Type %{NEW_CONTENT_TYPE}e env=NEW_CONTENT_TYPE
> 
> Sprich, wenn multipart/form-data kommt, dann einfach auf einen eigenen
> Content-Typ verbiegen und dann komme ich wieder ganz normal über
> file_get_contents("php://input"); ran.

}

-- 
PointedEars
Zend Certified PHP Engineer 
<http://www.zend.com/en/yellow-pages/ZEND024953> | Twitter: @PointedEars2
Please do not cc me. / Bitte keine Kopien per E-Mail.

Back to de.comp.lang.php | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Wie komme ich bei HTTP-Post-Request mit Content-Type: multipart/form-data; boundary=cbd60835-f15e-49e4-b0a2-6c569cea3a01 an den POST-Body Gerome Muent <kontakt@bmservices.de> - 2016-08-15 13:17 +0200
  Re: Wie komme ich bei HTTP-Post-Request mit Content-Type: multipart/form-data; boundary=cbd60835-f15e-49e4-b0a2-6c569cea3a01 an den POST-Body Martin Wohlert <martin@b-root-force.de> - 2016-08-15 13:28 +0200
    Re: Wie komme ich bei HTTP-Post-Request mit Content-Type: multipart/form-data; boundary=cbd60835-f15e-49e4-b0a2-6c569cea3a01 an den POST-Body Gerome Muent <kontakt@bmservices.de> - 2016-08-16 09:18 +0200
  Re: Wie komme ich bei HTTP-Post-Request mit Content-Type: multipart/form-data; boundary=cbd60835-f15e-49e4-b0a2-6c569cea3a01 an den POST-Body "Christoph M. Becker" <cmbecker69@arcor.de> - 2016-08-15 16:21 +0200
    Re: Wie komme ich bei HTTP-Post-Request mit Content-Type: multipart/form-data; boundary=cbd60835-f15e-49e4-b0a2-6c569cea3a01 an den POST-Body Gerome Muent <kontakt@bmservices.de> - 2016-08-16 09:17 +0200
      Re: Wie komme ich bei HTTP-Post-Request mit Content-Type: multipart/form-data; boundary=cbd60835-f15e-49e4-b0a2-6c569cea3a01 an den POST-Body Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-08-16 11:09 +0200
      Re: Wie komme ich bei HTTP-Post-Request mit Content-Type: multipart/form-data; boundary=cbd60835-f15e-49e4-b0a2-6c569cea3a01 an den POST-Body "Christoph M. Becker" <cmbecker69@arcor.de> - 2016-08-16 11:21 +0200
  Re: Wie komme ich bei HTTP-Post-Request mit Content-Type: multipart/form-data; boundary=cbd60835-f15e-49e4-b0a2-6c569cea3a01 an den POST-Body Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-08-16 09:35 +0200

csiph-web