From 04e5912d630b0cade76587220c1456f91c2737fc Mon Sep 17 00:00:00 2001 From: wencagh <39371496+wencagh@users.noreply.github.com> Date: Wed, 14 Aug 2024 16:28:28 +0200 Subject: [PATCH] set HTTP 307 Temporary Redirect as known HTTP status code Solve problem with current http://schemas.xmlsoap.org/wsdl/ to https redirect, which is done by HTTP 307. --- src/nusoap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nusoap.php b/src/nusoap.php index 1eb60fb..ddd7029 100644 --- a/src/nusoap.php +++ b/src/nusoap.php @@ -3268,7 +3268,7 @@ function getResponse() $http_reason = count($arr) > 2 ? $arr[2] : ''; // see if we need to resend the request with http digest authentication - if (isset($this->incoming_headers['location']) && ($http_status == 301 || $http_status == 302)) { + if (isset($this->incoming_headers['location']) && ($http_status == 301 || $http_status == 302 || $http_status == 307)) { $this->debug("Got $http_status $http_reason with Location: " . $this->incoming_headers['location']); $this->setURL($this->incoming_headers['location']); $this->tryagain = true;