disable_ssl ()

Disables SSL/HTTPS connections for hosts that don’t support them. Some services, however, still require SSL support.

This method will throw a user warning when invoked, which can be hidden by changing your error_reporting() settings.

Access

public

Returns

Type

Description

$this

A reference to the current instance.

Examples

Disable SSL for the service.

  • Note: It is not recommended to disable SSL.
  • Note: This method is inherited by all service-specific classes.
// Disable SSL (Using @ to suppress the warning from the output)
$sdb = new AmazonSDB();
@$sdb->disable_ssl(true);

// Test if the value was set
var_dump($sdb->use_ssl);
Result:
bool(false)

Changelog

Version

Description

1.3.4

This method now throws a user warning when invoked.

Source

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

public function disable_ssl()
{
    trigger_error('Disabling SSL connections is potentially unsafe and highly discouraged.', E_USER_WARNING);
    $this->use_ssl = false;
    return $this;
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback