From ebea5bf811e63ff4a7f0ab5099aba524110ef57d Mon Sep 17 00:00:00 2001 From: jbousquie Date: Thu, 24 Nov 2016 13:54:24 +0100 Subject: [PATCH] fonction GetURL() --- admin/client_http.php | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 admin/client_http.php diff --git a/admin/client_http.php b/admin/client_http.php new file mode 100644 index 0000000..12164f3 --- /dev/null +++ b/admin/client_http.php @@ -0,0 +1,21 @@ +send(); + if (200 == $response->getStatus()) { + $body = $response->getBody(); + } + } + catch (HTTP_Request2_Exception $ex) { + echo $ex->getMessage(); + } + return $body; +}; +?> \ No newline at end of file