From 35a823671c5c1484debb51cd696303a3cd35ab99 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Wed, 7 May 2014 16:55:19 +0200 Subject: generic req and res debug params for it_url::get --- it_url.class | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/it_url.class b/it_url.class index e66dfd4..bf1e23f 100644 --- a/it_url.class +++ b/it_url.class @@ -238,6 +238,9 @@ function get($p=null, $timeout=5) $p = array('url' => $p, 'timeout' => $timeout); $p += array('retries' => 1); + if (($filter = EDC('req')) && strstr($p['url'], it::replace('1' => ":", $filter))) + ED($p['url']); + if ($this instanceof it_url) { $url = $this; @@ -267,6 +270,9 @@ function get($p=null, $timeout=5) if (!$result && $p['retries'] > 0 && $url->result < 400) $result = $url->get(array('retries' => $p['retries'] - 1) + $p); + if (($filter = EDC('res')) && strstr($p['url'], it::replace('1' => ":", $filter))) + ED($result); + return $result; } -- cgit v1.2.3