Imported Upstream version 7.59.0
[platform/upstream/curl.git] / tests / data / test1034
index c475740..beab0d3 100644 (file)
@@ -6,57 +6,50 @@ HTTP GET
 HTTP proxy
 IDN
 FAILURE
+config file
 </keywords>
 </info>
 
 #
 # Server-side
 <reply>
-<data>
-HTTP/1.0 503 Service Unavailable\r
-Date: Thu, 09 Nov 2010 14:49:00 GMT\r
-Server: test-server/fake swsclose\r
-Content-Type: text/html\r
-Funny-head: yesyes\r
-\r
-</data>
 </reply>
 
 #
 # Client-side
 <client>
 <server>
-http
+none
 </server>
 <features>
 idn
+http
 </features>
 <setenv>
-CHARSET=UTF-8
+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>
 HTTP over proxy with malformatted IDN host name
  </name>
 
 # This host name contains an invalid UTF-8 byte sequence that can't be
 # converted into an IDN name
+<stdin>
+url = "http://invalid-utf8-â\90.local/page/1034"
+</stdin>
  <command>
-http://invalid-utf8-â\90.local/page/1034 -x %HOSTIP:%HTTPPORT
+-K - -x %HOSTIP:%HTTPPORT
 </command>
 </client>
 
 #
-# Verify data after the test has been "shot"
 <verify>
-<strip>
-^User-Agent:.*
-</strip>
-<protocol>
-GET http://invalid-utf8-â\90.local/page/1034 HTTP/1.1\r
-Host: invalid-utf8-â\90.local\r
-Accept: */*\r
-Proxy-Connection: Keep-Alive\r
-\r
-</protocol>
+<errorcode>
+3
+</errorcode>
 </verify>
 </testcase>