diff --git a/www/admin/class_test.url-requests.curl.php b/www/admin/class_test.url-requests.curl.php
index f657e7de..87fa0053 100644
--- a/www/admin/class_test.url-requests.curl.php
+++ b/www/admin/class_test.url-requests.curl.php
@@ -244,7 +244,7 @@ print "
";
try {
$uc = new Curl([
"base_uri" => 'https://soba.egplusww.jp/developers/clemens/core_data/php_libraries/trunk/www/admin/',
- "exception_on_not_authorized" => false,
+ "http_errors" => false,
"headers" => [
"Authorization" => "schmalztiegel",
"RunAuthTest" => "yes",
@@ -262,7 +262,7 @@ print "AUTH REQUEST WITH EXCEPTION:
";
try {
$uc = new Curl([
"base_uri" => 'https://soba.egplusww.jp/developers/clemens/core_data/php_libraries/trunk/www/admin/',
- "exception_on_not_authorized" => true,
+ "http_errors" => true,
"headers" => [
"Authorization" => "schmalztiegel",
"RunAuthTest" => "yes",
@@ -276,6 +276,24 @@ try {
} catch (Exception $e) {
print "Exception: " . print_r(json_decode($e->getMessage(), true), true) . "
";
}
+print "AUTH REQUEST WITH EXCEPTION (UNSET):
";
+try {
+ $uc = new Curl([
+ "base_uri" => 'https://soba.egplusww.jp/developers/clemens/core_data/php_libraries/trunk/www/admin/',
+ "http_errors" => true,
+ "headers" => [
+ "Authorization" => "schmalztiegel",
+ "RunAuthTest" => "yes",
+ ]
+ ]);
+ $response = $uc->get('UrlRequests.target.php', ['http_errors' => false]);
+ print "AUTH REQUEST (UNSET): " . print_r($response, true) . "
";
+ print "[uc] SENT URL: " . $uc->getUrlSent() . "
";
+ print "[uc] SENT URL PARSED: " . print_r($uc->getUrlParsedSent(), true) . "
";
+ print "[uc] SENT HEADERS: " . print_r($uc->getHeadersSent(), true) . "
";
+} catch (Exception $e) {
+ print "Exception: " . print_r(json_decode($e->getMessage(), true), true) . "
";
+}
print "
";
$uc = new Curl([
@@ -285,7 +303,7 @@ $uc = new Curl([
]
]);
$response = $uc->get('UrlRequests.target.php', ["headers" => null, "query" => ["test" => "one-test"]]);
-print "AUTH REQUEST: " . print_r($response, true) . "
";
+print "HEADER RESET REQUEST: " . print_r($response, true) . "
";
print "[uc] SENT URL: " . $uc->getUrlSent() . "
";
print "[uc] SENT URL PARSED: " . print_r($uc->getUrlParsedSent(), true) . "
";
print "[uc] SENT HEADERS: " . print_r($uc->getHeadersSent(), true) . "
";