Anonymous - 2011-04-28

For NuSOAP 0.9.5 using a proxy is broken when proxy port is different from endpoint port.

Correction to do :

Class: soap_transport_http
Method: connect

    // open socket
    if($connection_timeout > 0){
        $this->fp = @fsockopen( $host, $this->port, $this->errno, $this->error_str, $connection_timeout);
    } else {
        $this->fp = @fsockopen( $host, $this->port, $this->errno, $this->error_str);
    }

=> Has to replace "$this->port" by "$port".