xref: /curl/tests/data/test474 (revision 56032044)
1<testcase>
2<info>
3<keywords>
4-w
5--write-out
6</keywords>
7</info>
8
9#
10# Server-side
11<reply>
12<data crlf="yes" nocheck="yes">
13HTTP/1.1 301 OK
14Date: Tue, 09 Nov 2010 14:49:00 GMT
15Content-Length: 0
16Connection: close
17Content-Type: text/html
18Location: https://%HOSTIP:%HTTPSPORT/%TESTNUMBER0002
19
20</data>
21<data2 crlf="yes" nocheck="yes">
22HTTP/1.1 200 OK
23Date: Tue, 09 Nov 2010 14:49:00 GMT
24Content-Length: 0
25Connection: close
26
27</data2>
28</reply>
29
30#
31# Client-side
32<client>
33<server>
34http
35https
36</server>
37<name>
38-w urle.scheme after HTTP to HTTPS redirect
39</name>
40<command option="no-include">
41-k -L http://%HOSTIP:%HTTPPORT/%TESTNUMBER -w "%{num_redirects} %{url_effective} %{urle.scheme}\n"
42</command>
43</client>
44
45#
46# Verify data after the test has been "shot"
47<verify>
48<stdout>
491 https://%HOSTIP:%HTTPSPORT/%TESTNUMBER0002 https
50</stdout>
51</verify>
52</testcase>
53