From 45a003930b62e05b3ed14058a56a01e9f321d639 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Tue, 20 Aug 2019 12:46:16 +0000 Subject: [PATCH] httpclient : allow to get TCP source/dest IP and ports in getInfo method git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@5426 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- httpclient.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/httpclient.php b/httpclient.php index b0699ea..b1a215e 100644 --- a/httpclient.php +++ b/httpclient.php @@ -4,6 +4,8 @@ * @author Dominique Fournier */ +require_once ("domframework/tcpclient.php"); + /** This programe allow to get a HTTP page from a site, and examine the content. * It will store the Cookies, allow to do the redirects, follow links and * get form / input and send the values. @@ -483,6 +485,13 @@ class Httpclient } // }}} + /** Return the TCP infos of the connection + */ + public function getInfo () + { + return $this->tcpclient->getInfo (); + } + ////////////////////////////////// //// THE ACTIVE METHODS //// //////////////////////////////////