Revert "Update to 7.44.0"
[platform/upstream/curl.git] / tests / data / test257
index 5c81409..45642d5 100644 (file)
@@ -1,11 +1,15 @@
+<testcase>
 <info>
 <keywords>
 HTTP
 HTTP GET
+HTTP proxy
+HTTP Basic auth
 followlocation
 netrc
 </keywords>
 </info>
+
 # Server-side
 <reply>
 <data>
@@ -31,6 +35,7 @@ If this is received, the location following worked
 HTTP/1.1 200 Followed here fine swsclose
 Date: Thu, 09 Nov 2010 14:49:00 GMT
 Server: test-server/fake
+Content-Length: 52
 
 If this is received, the location following worked
 
@@ -50,6 +55,7 @@ Location: http://athird.com/2570003
 HTTP/1.1 200 Followed here fine swsclose
 Date: Thu, 09 Nov 2010 14:49:00 GMT
 Server: test-server/fake
+Content-Length: 52
 
 If this is received, the location following worked
 
@@ -58,9 +64,6 @@ If this is received, the location following worked
 
 # Client-side
 <client>
-<features>
-netrc_debug
-</features>
 <server>
 http
 </server>
@@ -68,11 +71,11 @@ http
 HTTP Location: following with --netrc-optional
  </name>
  <command>
-http://supersite.com/want/257 -L -x http://%HOSTIP:%HTTPPORT --netrc-optional
+http://supersite.com/want/257 -L -x http://%HOSTIP:%HTTPPORT --netrc-optional --netrc-file log/netrc257
 </command>
 
 # netrc auth for two out of three sites:
-<file name="log/netrc">
+<file name="log/netrc257">
 machine supersite.com login user1 password passwd1
 machine anotherone.com login user2 password passwd2
 </file>
@@ -88,7 +91,6 @@ GET http://supersite.com/want/257 HTTP/1.1
 Authorization: Basic dXNlcjE6cGFzc3dkMQ==\r
 User-Agent: curl/7.14.0-CVS (i686-pc-linux-gnu) libcurl/7.14.0-CVS OpenSSL/0.9.7e zlib/1.2.2 libidn/0.5.13\r
 Host: supersite.com\r
-Pragma: no-cache\r
 Accept: */*\r
 Proxy-Connection: Keep-Alive\r
 \r
@@ -96,16 +98,15 @@ GET http://anotherone.com/2570002 HTTP/1.1
 Authorization: Basic dXNlcjI6cGFzc3dkMg==\r
 User-Agent: curl/7.14.0-CVS (i686-pc-linux-gnu) libcurl/7.14.0-CVS OpenSSL/0.9.7e zlib/1.2.2 libidn/0.5.13
 Host: anotherone.com\r
-Pragma: no-cache\r
 Accept: */*\r
 Proxy-Connection: Keep-Alive\r
 \r
 GET http://athird.com/2570003 HTTP/1.1\r
 User-Agent: curl/7.14.0-CVS (i686-pc-linux-gnu) libcurl/7.14.0-CVS OpenSSL/0.9.7e zlib/1.2.2 libidn/0.5.13
 Host: athird.com\r
-Pragma: no-cache\r
 Accept: */*\r
 Proxy-Connection: Keep-Alive\r
 \r
 </protocol>
 </verify>
+</testcase>