From fd049d826b8491e078552954e63ee762f43eadbe Mon Sep 17 00:00:00 2001 From: "Christian G. Warden" Date: Fri, 16 Nov 2012 12:43:02 -0800 Subject: [PATCH] Add support for SOAP API Pass through SOAPAction header, necessary when proxying requests to the SOAP API. --- proxy.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/proxy.php b/proxy.php index fdc47ff..eb935ea 100644 --- a/proxy.php +++ b/proxy.php @@ -260,6 +260,10 @@ // Pass through the Content-Type header array_push($headers, "Content-Type: ".$_SERVER['CONTENT_TYPE'] ); } + if ( isset($_SERVER['HTTP_SOAPACTION']) ) { + // Pass through the SOAPAction header + array_push($headers, "SOAPAction: ".$_SERVER['HTTP_SOAPACTION'] ); + } if ( isset($_SERVER['HTTP_X_USER_AGENT']) ) { // Pass through the X-User-Agent header array_push($headers, "X-User-Agent: ".$_SERVER['HTTP_X_USER_AGENT'] );