summaryrefslogtreecommitdiff
path: root/it_url.class
diff options
context:
space:
mode:
authorUrban Müller2014-05-07 16:55:19 +0200
committerUrban Müller2014-05-07 16:55:19 +0200
commit35a823671c5c1484debb51cd696303a3cd35ab99 (patch)
treed5f61d883e7c67f220a44ccde62a6b64eb9ee515 /it_url.class
parent0b7da7960a694fe2fa50f041dedcee43f334d90d (diff)
downloaditools-35a823671c5c1484debb51cd696303a3cd35ab99.tar.gz
itools-35a823671c5c1484debb51cd696303a3cd35ab99.tar.bz2
itools-35a823671c5c1484debb51cd696303a3cd35ab99.zip
generic req and res debug params for it_url::get
Diffstat (limited to 'it_url.class')
-rw-r--r--it_url.class6
1 files changed, 6 insertions, 0 deletions
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;
}