16 HTTP/1.1 301 This is a weirdo text message swsclose
17 Date: Thu, 09 Nov 2010 14:49:00 GMT
18 Server: test-server/fake
19 Location: http://anotherone.com/2570002
22 This server reply is for testing a simple Location: following
26 HTTP/1.1 302 Followed here fine swsclose
27 Date: Thu, 09 Nov 2010 14:49:00 GMT
28 Server: test-server/fake
29 Location: http://athird.com/2570003
31 If this is received, the location following worked
35 HTTP/1.1 200 Followed here fine swsclose
36 Date: Thu, 09 Nov 2010 14:49:00 GMT
37 Server: test-server/fake
40 If this is received, the location following worked
44 HTTP/1.1 301 This is a weirdo text message swsclose
45 Date: Thu, 09 Nov 2010 14:49:00 GMT
46 Server: test-server/fake
47 Location: http://anotherone.com/2570002
50 HTTP/1.1 302 Followed here fine swsclose
51 Date: Thu, 09 Nov 2010 14:49:00 GMT
52 Server: test-server/fake
53 Location: http://athird.com/2570003
55 HTTP/1.1 200 Followed here fine swsclose
56 Date: Thu, 09 Nov 2010 14:49:00 GMT
57 Server: test-server/fake
60 If this is received, the location following worked
71 HTTP Location: following with --netrc-optional
74 http://supersite.com/want/257 -L -x http://%HOSTIP:%HTTPPORT --netrc-optional --netrc-file log/netrc257
77 # netrc auth for two out of three sites:
78 <file name="log/netrc257">
79 machine supersite.com login user1 password passwd1
80 machine anotherone.com login user2 password passwd2
84 # Verify data after the test has been "shot"
90 GET http://supersite.com/want/257 HTTP/1.1
92 Authorization: Basic dXNlcjE6cGFzc3dkMQ==
93 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
95 Proxy-Connection: Keep-Alive
97 GET http://anotherone.com/2570002 HTTP/1.1
99 Authorization: Basic dXNlcjI6cGFzc3dkMg==
100 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
102 Proxy-Connection: Keep-Alive
104 GET http://athird.com/2570003 HTTP/1.1
106 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
108 Proxy-Connection: Keep-Alive