get_auth_string example


    public function curl_before_send(&$handle) {
        curl_setopt($handle, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
        curl_setopt($handle, CURLOPT_PROXY, $this->proxy);

        if ($this->use_authentication) {
            curl_setopt($handle, CURLOPT_PROXYAUTH, CURLAUTH_ANY);
            curl_setopt($handle, CURLOPT_PROXYUSERPWD, $this->get_auth_string());
        }
    }

    /** * Alter remote socket information before opening socket connection * * @since 1.6 * @param string $remote_socket Socket connection string */
    public function fsockopen_remote_socket(&$remote_socket) {
        $remote_socket = $this->proxy;
    }
Home | Imprint | This part of the site doesn't use cookies.