Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

SOAP via Proxy is broken

Help
Anonymous
2011-04-28
2013-06-06

  • 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".