summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2009-05-16 17:02:02 +0000
committerFelipe Pena <felipe@php.net>2009-05-16 17:02:02 +0000
commitcc2c1c3360f53a687a2784ed43d322bf0f7eefe5 (patch)
tree12c22d8467eee8a3262b97ee795b9f418d05375f
parent79b099b6382000080912527d906babd7e2f69248 (diff)
downloadphp-git-cc2c1c3360f53a687a2784ed43d322bf0f7eefe5.tar.gz
- Added changes from testfest ParisUG && Changed line endings
-rw-r--r--ext/curl/tests/responder/get.php14
1 files changed, 13 insertions, 1 deletions
diff --git a/ext/curl/tests/responder/get.php b/ext/curl/tests/responder/get.php
index 630ed09684..26dd5198a6 100644
--- a/ext/curl/tests/responder/get.php
+++ b/ext/curl/tests/responder/get.php
@@ -10,9 +10,21 @@
case 'useragent':
echo $_SERVER['HTTP_USER_AGENT'];
break;
+ case 'httpversion':
+ echo $_SERVER['SERVER_PROTOCOL'];
+ break;
+ case 'cookie':
+ echo $_COOKIE['foo'];
+ break;
+ case 'encoding':
+ echo $_SERVER['HTTP_ACCEPT_ENCODING'];
+ break;
+ case 'contenttype':
+ header('Content-Type: text/plain;charset=utf-8');
+ break;
default:
echo "Hello World!\n";
echo "Hello World!";
break;
}
-?> \ No newline at end of file
+?>