307 not supported status solution
George Asenov <[email protected]> Wed, 22 Apr 2020 16:25:54 +0300
| Newsgroups | gmane.comp.php.nusoap.general |
|---|---|
| Message-ID | <[email protected]> |
Hello. I see that even in the last version 0.9 nusoap does not support
status 307 temporary redirect!
Simple solution is to just do the request again but to the address of
the location header. Just like it is handled when digest authentication
is used.
Basically the solution is to add the 307 status to the list when digest
auth is needed:
line: 3208
< 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)) {
--
Warm regards
George A.
WPXHosting