xref: /curl/tests/data/test1443 (revision 39697dea)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6-O
7--remote-time
8</keywords>
9</info>
10
11#
12<reply>
13<data nocheck="yes">
14HTTP/1.1 200 OK
15Date: Tue, 09 Nov 2010 14:49:00 GMT
16Server: test-server/fake
17Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
18Content-Length: 6
19Connection: close
20
2112345
22</data>
23</reply>
24
25#
26# Client-side
27<client>
28<server>
29http
30</server>
31<name>
32HTTP GET with -O and --remote-time
33</name>
34<command option="no-output,no-include">
35http://%HOSTIP:%HTTPPORT/%TESTNUMBER -O --remote-time --output-dir %LOGDIR
36</command>
37# Verify the mtime of the file. The mtime is specifically chosen to be an even
38# number so that it can be represented exactly on a FAT filesystem.
39</client>
40
41#
42# Verify data after the test has been "shot"
43<verify>
44<protocol>
45GET /%TESTNUMBER HTTP/1.1
46Host: %HOSTIP:%HTTPPORT
47User-Agent: curl/%VERSION
48Accept: */*
49
50</protocol>
51<file name="%LOGDIR/%TESTNUMBER">
5212345
53</file>
54<postcheck>
55%PERL -e 'exit((stat("%LOGDIR/%TESTNUMBER"))[9] != 960898200)'
56</postcheck>
57</verify>
58</testcase>
59