Set the proxy settings to use.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
---|---|---|---|
|
Required |
Accepts proxy credentials in the following format: |
Returns
Type |
Description |
---|---|
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