This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Assumption: $container is an instance of OpenCloud\ObjectStore\Resource\Container | |
$filename = 'mugshot2.png'; | |
try { | |
// Try to retrieve the file, but only its headers to save | |
// bandwidth and time. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require 'vendor/autoload.php'; | |
use OpenCloud\Rackspace; | |
use OpenCloud\ObjectStore\Resource\DataObject; | |
// Create a client object to communicate with various Rackspace Cloud services. | |
$client = new Rackspace(Rackspace::UK_IDENTITY_ENDPOINT, array( | |
'username' => '<YOUR RACKSPACE CLOUD USERNAME HERE>', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Content-Type: multipart/mixed; boundary=9021d370dd4927r43097g2 | |
--9021d370dd4927r43097g2 | |
Content-Type: application/json | |
<json data> | |
--9021d370dd4927r43097g2 | |
Content-Type: application/xml |
NewerOlder