set_proxy ( $proxy )

Set the proxy settings to use.

Access

public

Parameters

Parameter

Type

Required

Description

$proxy

string

Required

Accepts proxy credentials in the following format: proxy://user:pass@hostname:port

Returns

Type

Description

$this

A reference to the current instance.

Examples

Set the proxy server to use for requests.

Note: This method is inherited by all service-specific classes.

// Adjust offset
$sdb = new AmazonSDB();
$sdb->set_proxy('proxy://user:pass@hostname:port');

// Test if the value was set
var_dump($sdb->proxy);
Result:
string(31) "proxy://user:pass@hostname:port"

Source

Method defined in sdk.class.php | Toggle source view (5 lines) | View on GitHub

public function set_proxy($proxy)
{
    $this->proxy = $proxy;
    return $this;
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback