Nigel Johnson - 2014-01-11 12:40:42
I have spent a few hours implementing this class as it's something I really need. I got it working on my dev platform on my laptop but when I pushed it up to my production platform (Google Apps Engine) it no longer works because the http class can't resolve hostnames.
This is not a problem with the platform. I copied the test_http_image_request.php (with a new url) and it fails on GAE, yet if i use this:
<?php
$url="http://files.phpclasses.org/graphics/phpclasses/logo-phpclasses.png";
$c = file_get_contents($url);
echo "<p>Got ".strlen($c)." bytes from $url</p>";
?>
which is essentially what I'm testing with the http class, I get the 8440 bytes both on my dev platform and production.
Any help very much appreciated.