Annotation of embedaddon/curl/tests/data/test274, revision 1.1.1.1
1.1 misho 1: <testcase>
2: <info>
3: <keywords>
4: HTTP
5: HTTP GET
6: followlocation
7: --max-redirs
8: </keywords>
9: </info>
10: # Server-side
11: <reply>
12: <data>
13: HTTP/1.1 301 This is a weirdo text message swsclose
14: Server: test-server/fake
15: Location: data/reply/25
16: Content-Length: 0
17: Connection: close
18:
19: </data>
20: </reply>
21:
22: # Client-side
23: <client>
24: <server>
25: http
26: </server>
27: <name>
28: HTTP Location: following with --max-redirs 0
29: </name>
30: <command>
31: http://%HOSTIP:%HTTPPORT/want/274 -L --max-redirs 0
32: </command>
33: </client>
34:
35: # Verify data after the test has been "shot"
36: <verify>
37: <strip>
38: ^User-Agent: curl/.*
39: </strip>
40: <protocol>
41: GET /want/274 HTTP/1.1
42: User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)
43: Host: %HOSTIP:%HTTPPORT
44: Accept: */*
45:
46: </protocol>
47:
48: <errorcode>
49: 47
50: </errorcode>
51: </verify>
52: </testcase>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>