• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6retry
7</keywords>
8</info>
9
10#
11# Server-side
12<reply>
13<data nocheck="yes">
14HTTP/1.1 200 OK swsclose swsbounce
15Content-Length: 5
16Connection: close
17
18bbb
19</data>
20<data1>
21HTTP/1.1 200 OK
22Content-Length: 5
23Connection: close
24
25data
26</data1>
27</reply>
28
29#
30# Client-side
31<client>
32<server>
33http
34</server>
35<name>
36HTTP GET --retry-all-errors to overcome partial transfer
37</name>
38 <command option="no-output,no-include">
39--retry 1 --retry-all-errors -o %LOGDIR/outfile%TESTNUMBER http://%HOSTIP:%HTTPPORT/%TESTNUMBER
40</command>
41</client>
42
43#
44# Verify data after the test has been "shot"
45<verify>
46<protocol>
47GET /%TESTNUMBER HTTP/1.1
48Host: %HOSTIP:%HTTPPORT
49User-Agent: curl/%VERSION
50Accept: */*
51
52GET /%TESTNUMBER HTTP/1.1
53Host: %HOSTIP:%HTTPPORT
54User-Agent: curl/%VERSION
55Accept: */*
56
57</protocol>
58
59<file1 name="%LOGDIR/outfile%TESTNUMBER">
60data
61</file1>
62
63</verify>
64</testcase>
65