nusoap icon indicating copy to clipboard operation
nusoap copied to clipboard

Issue on Windows servers with Content-Length

Open Illsteward opened this issue 8 years ago • 3 comments

Hi,

for some reasons, Windows servers have always had trouble with using Content-Length and zipping content within NuSoap. No matter the settings in Apache, the content comes messed. A quick workaround is to comment out lines 4345 to 4377, starting with comment "//begin code to compress payload - by John" and ending with $this->outgoing_headers[] = "Content-Length: " . strlen($payload); Confirmed on Windows server 2012 R2 with multiple NuSoap versions, yours included. Adding mode_deflate to Apache did not help, neither did setting PHP global compression to deflate or none. Can you please look into it?

Illsteward avatar Nov 01 '17 13:11 Illsteward

Proposed solution - add OS detection to line 4345, so that the compression is off for Windows.

Illsteward avatar Nov 02 '17 10:11 Illsteward

Could you please send a PR? I agree with your solution.

f3l1x avatar Dec 06 '17 08:12 f3l1x

Created.

Illsteward avatar Dec 06 '17 09:12 Illsteward