• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<testcase>
2<info>
3<keywords>
4HTTP
5--location-trusted
6</keywords>
7</info>
8
9#
10# Server-side
11<reply>
12<data>
13HTTP/1.1 301 redirect
14Date: Tue, 09 Nov 2010 14:49:00 GMT
15Server: test-server/fake
16Content-Length: 0
17Connection: close
18Content-Type: text/html
19Location: http://firsthost.com:9999/a/path/%TESTNUMBER0002
20
21</data>
22<data2>
23HTTP/1.1 200 OK
24Date: Tue, 09 Nov 2010 14:49:00 GMT
25Server: test-server/fake
26Content-Length: 4
27Connection: close
28Content-Type: text/html
29
30hey
31</data2>
32
33<datacheck>
34HTTP/1.1 301 redirect
35Date: Tue, 09 Nov 2010 14:49:00 GMT
36Server: test-server/fake
37Content-Length: 0
38Connection: close
39Content-Type: text/html
40Location: http://firsthost.com:9999/a/path/%TESTNUMBER0002
41
42HTTP/1.1 200 OK
43Date: Tue, 09 Nov 2010 14:49:00 GMT
44Server: test-server/fake
45Content-Length: 4
46Connection: close
47Content-Type: text/html
48
49hey
50</datacheck>
51
52</reply>
53
54#
55# Client-side
56<client>
57<server>
58http
59</server>
60 <name>
61HTTP with auth redirected to HTTP on a diff port --location-trusted
62 </name>
63 <command>
64-x http://%HOSTIP:%HTTPPORT http://firsthost.com --location-trusted -u joe:secret
65</command>
66</client>
67
68#
69# Verify data after the test has been "shot"
70<verify>
71<protocol>
72GET http://firsthost.com/ HTTP/1.1
73Host: firsthost.com
74Authorization: Basic am9lOnNlY3JldA==
75User-Agent: curl/%VERSION
76Accept: */*
77Proxy-Connection: Keep-Alive
78
79GET http://firsthost.com:9999/a/path/%TESTNUMBER0002 HTTP/1.1
80Host: firsthost.com:9999
81Authorization: Basic am9lOnNlY3JldA==
82User-Agent: curl/%VERSION
83Accept: */*
84Proxy-Connection: Keep-Alive
85
86</protocol>
87</verify>
88</testcase>
89