-if (http_support(HTTP_SUPPORT_REQUESTS)) {
- try {
- $tmp = http_get(null);
- } catch (HttpRequestException $x) {
- printf("%s (%d)\n", $x->getMessage(), $x->getCode());
- }
-} else {
- echo "Could not perform request: URL using bad/illegal format or missing URL (8)\n";
-}