I'm not sure if this is a google storage issue.
I have a php snippet that does this :
<?php
$headers = get_headers($img);
print_r($headers);
?>
php getheaders.php
Array
(
[0] => HTTP/1.0 200 OK
[1] => Server: HTTP Upload Server Built on Mar 6 2013 16:24:27 (1362615867)
[2] => Date: Wed, 13 Mar 2013 10:46:01 GMT
[3] => Cache-Control: public,max-age=31536000, no-transform
[4] => Expires: Thu, 13 Mar 2014 10:46:01 GMT
[5] => Last-Modified: Fri, 01 Mar 2013 07:48:12 GMT
[6] => ETag: "940e5e58c533c9a7158132babd0be43b"
[7] => x-goog-generation: 1362124092818000
[8] => x-goog-metageneration: 1
[9] => Content-Type: image/jpeg
[10] => Content-Language: en
[11] => x-goog-hash: md5=lA5eWMUzyacVgTK6vQvkOw==
[12] => Accept-Ranges: bytes
[13] => Content-Length: 24977
[14] => Vary: Origin
)
But on using curl :
HTTP/1.1 200 OK
Server: HTTP Upload Server Built on Mar 6 2013 16:24:27 (1362615867)
Date: Wed, 13 Mar 2013 10:46:11 GMT
Cache-Control: public,max-age=31536000, no-transform
Expires: Thu, 13 Mar 2014 10:46:11 GMT
Last-Modified: Fri, 01 Mar 2013 07:48:12 GMT
ETag: "940e5e58c533c9a7158132babd0be43b"
x-goog-generation: 1362124092818000
x-goog-metageneration: 1
Content-Type: image/jpeg
Content-Language: en
x-goog-hash: md5=lA5eWMUzyacVgTK6vQvkOw==
Accept-Ranges: bytes
Content-Length: 24977
Vary: Origin
How is that getheaders() returned "HTTP/1.0 200 OK" while curl returned "HTTP/1.1 200 OK" ? Im on Ubuntu 12.10.