13 HTTP/1.1 301 This is a weirdo text message swsclose
14 Date: Thu, 09 Nov 2010 14:49:00 GMT
15 Server: test-server/fake
16 Location: http://anotherone.com/2570002
19 This server reply is for testing a simple Location: following
23 HTTP/1.1 302 Followed here fine swsclose
24 Date: Thu, 09 Nov 2010 14:49:00 GMT
25 Server: test-server/fake
26 Location: http://athird.com/2570003
28 If this is received, the location following worked
32 HTTP/1.1 200 Followed here fine swsclose
33 Date: Thu, 09 Nov 2010 14:49:00 GMT
34 Server: test-server/fake
37 If this is received, the location following worked
41 HTTP/1.1 301 This is a weirdo text message swsclose
42 Date: Thu, 09 Nov 2010 14:49:00 GMT
43 Server: test-server/fake
44 Location: http://anotherone.com/2570002
47 HTTP/1.1 302 Followed here fine swsclose
48 Date: Thu, 09 Nov 2010 14:49:00 GMT
49 Server: test-server/fake
50 Location: http://athird.com/2570003
52 HTTP/1.1 200 Followed here fine swsclose
53 Date: Thu, 09 Nov 2010 14:49:00 GMT
54 Server: test-server/fake
57 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
77 # netrc auth for two out of three sites:
78 <file name="log/netrc">
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
91 Authorization: Basic dXNlcjE6cGFzc3dkMQ==
92 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
96 Proxy-Connection: Keep-Alive
98 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
104 Proxy-Connection: Keep-Alive
106 GET http://athird.com/2570003 HTTP/1.1
107 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
111 Proxy-Connection: Keep-Alive