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

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
Date 2016-08-16 11:09 +0200
Organization PointedEars Software (PES)
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>

Show all headers | 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