summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Gass2016-08-18 15:23:18 +0200
committerNathan Gass2016-08-18 15:23:18 +0200
commit4b0f1f9a4396036dc4b0473a9a7850626becc426 (patch)
treefe2710626472b355996d723b4dee759fc1745959
parentfd38f09a146922a899a605bfaf9c562f5ddd310e (diff)
downloaditools-4b0f1f9a4396036dc4b0473a9a7850626becc426.tar.gz
itools-4b0f1f9a4396036dc4b0473a9a7850626becc426.tar.bz2
itools-4b0f1f9a4396036dc4b0473a9a7850626becc426.zip
add parameter curl to force usage of request_curl
-rw-r--r--it_url.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_url.class b/it_url.class
index 11be048..4552cf5 100644
--- a/it_url.class
+++ b/it_url.class
@@ -121,7 +121,7 @@ function get($p=null, $timeout=5)
else # called statically
$url = new it_url($p['url']);
- if ($url->protocol == 'http')
+ if ($url->protocol == 'http' && !$p['curl'])
$result = $url->request($p);
else
$result = $url->request_curl($p);