[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnurl] 35/41: test1448: verify redirect to IDN using URL
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnurl] 35/41: test1448: verify redirect to IDN using URL |
Date: |
Sun, 20 Aug 2017 20:46:57 +0200 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to annotated tag gnurl-7.55.1
in repository gnurl.
commit 6bde13a5316ef75eec695d96ce7deb1a6f3e2ce5
Author: Daniel Stenberg <address@hidden>
AuthorDate: Sun Aug 13 00:02:49 2017 +0200
test1448: verify redirect to IDN using URL
Closes #1772
---
tests/data/Makefile.inc | 2 +-
tests/data/test1448 | 92 +++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 93 insertions(+), 1 deletion(-)
diff --git a/tests/data/Makefile.inc b/tests/data/Makefile.inc
index f1e975eb2..1657ac67a 100644
--- a/tests/data/Makefile.inc
+++ b/tests/data/Makefile.inc
@@ -154,7 +154,7 @@ test1416 test1417 test1418 test1419 test1420 test1421
test1422 test1423 \
test1424 test1425 test1426 test1427 \
test1428 test1429 test1430 test1431 test1432 test1433 test1434 test1435 \
test1436 test1437 test1438 test1439 test1440 test1441 test1442 test1443 \
-test1444 test1445 test1446 test1447 test1450 test1451 \
+test1444 test1445 test1446 test1447 test1448 test1450 test1451 \
test1452 \
test1500 test1501 test1502 test1503 test1504 test1505 test1506 test1507 \
test1508 test1509 test1510 test1511 test1512 test1513 test1514 test1515 \
diff --git a/tests/data/test1448 b/tests/data/test1448
new file mode 100644
index 000000000..e04f47bde
--- /dev/null
+++ b/tests/data/test1448
@@ -0,0 +1,92 @@
+<testcase>
+<info>
+<keywords>
+HTTP
+HTTP GET
+IDN
+followlocation
+--write-out
+</keywords>
+</info>
+
+#
+# Server-side
+<reply>
+<data nocheck="yes">
+HTTP/1.1 302 OK swsbounce
+Date: Thu, 09 Nov 2010 14:49:00 GMT
+Content-Length: 9
+Content-Type: text/plain
+Location: http://åäö.se:8990/14480001
+
+redirect
+</data>
+<data1 nocheck="yes">
+HTTP/1.1 200 OK
+Date: Thu, 09 Nov 2010 14:49:00 GMT
+Content-Length: 3
+Content-Type: text/plain; charset=us-ascii
+
+OK
+</data1>
+</reply>
+
+#
+# Client-side
+<client>
+<server>
+http
+</server>
+<features>
+idn
+</features>
+<setenv>
+LC_ALL=
+LC_CTYPE=en_US.UTF-8
+</setenv>
+<precheck>
+perl -MI18N::Langinfo=langinfo,CODESET -e 'die "Needs a UTF-8 locale" if
(lc(langinfo(CODESET())) ne "utf-8");'
+</precheck>
+ <name>
+Redirect following to UTF-8 IDN host name
+ </name>
+
+ <command>
+http://åäö.se:%HTTPPORT/1448 --resolve xn--4cab6c.se:%HTTPPORT:%HOSTIP -L
--connect-to %HOSTIP:8990:%HOSTIP:%HTTPPORT
+</command>
+</client>
+
+#
+# Verify data after the test has been "shot"
+<verify>
+<strip>
+^User-Agent:.*
+</strip>
+<protocol>
+GET /1448 HTTP/1.1
+Host: xn--4cab6c.se:%HTTPPORT
+Accept: */*
+
+GET /14480001 HTTP/1.1
+Host: xn--4cab6c.se:%HTTPPORT
+Accept: */*
+
+</protocol>
+
+<stdout>
+HTTP/1.1 302 OK swsbounce
+Date: Thu, 09 Nov 2010 14:49:00 GMT
+Content-Length: 9
+Content-Type: text/plain
+Location: http://åäö.se:%HTTPPORT/14480001
+
+HTTP/1.1 200 OK
+Date: Thu, 09 Nov 2010 14:49:00 GMT
+Content-Length: 3
+Content-Type: text/plain; charset=us-ascii
+
+OK
+</stdout>
+
+</verify>
+</testcase>
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [gnurl] 30/41: connect-to.d: better language, (continued)
- [GNUnet-SVN] [gnurl] 30/41: connect-to.d: better language, gnunet, 2017/08/20
- [GNUnet-SVN] [gnurl] 24/41: docs: fix typo stuct -> struct, gnunet, 2017/08/20
- [GNUnet-SVN] [gnurl] 23/41: test1447: require a curl with http support, gnunet, 2017/08/20
- [GNUnet-SVN] [gnurl] 13/41: mkhelp.pl: allow executing this script directly, gnunet, 2017/08/20
- [GNUnet-SVN] [gnurl] 31/41: cmake: allow user to override CMAKE_DEBUG_POSTFIX, gnunet, 2017/08/20
- [GNUnet-SVN] [gnurl] 25/41: docs: fix grammar in CURL_SSLVERSION_MAX_DEFAULT description, gnunet, 2017/08/20
- [GNUnet-SVN] [gnurl] 22/41: curl/system.h: support more architectures, gnunet, 2017/08/20
- [GNUnet-SVN] [gnurl] 29/41: connect-to.d: clarified, gnunet, 2017/08/20
- [GNUnet-SVN] [gnurl] 12/41: configure: use the threaded resolver backend by default if possible, gnunet, 2017/08/20
- [GNUnet-SVN] [gnurl] 37/41: ipv6_scope: support unique local addresses, gnunet, 2017/08/20
- [GNUnet-SVN] [gnurl] 35/41: test1448: verify redirect to IDN using URL,
gnunet <=
- [GNUnet-SVN] [gnurl] 41/41: Patchset for gnURL microfork: * Patches to rename libcurl to libgnurl by Christian * Updated for latest curl using git cherry-pick by Jeff, Florian, ng0 * Patches to fix the testsuite (deleted tests/data/test1139, renamed reference from libcurl.* to libgnurl.*) by ng0 * Added guix-gnurl.scm which can be used to build this with guix prior to installing it. (author: ng0) * Further adjustments by ng0 * 7.55.0: Manual addition of a7bbbb7c368c6096802007f61f19a02e9d75285b and f864bd8c880d5a91637 [...], gnunet, 2017/08/20