~ubuntu-branches/ubuntu/lucid/curl/lucid-201101212007

« back to all changes in this revision

Viewing changes to tests/data/test44

  • Committer: Bazaar Package Importer
  • Author(s): Domenico Andreoli
  • Date: 2002-03-12 19:06:21 UTC
  • Revision ID: james.westby@ubuntu.com-20020312190621-iqx7k9cipo5d0ifr
Tags: upstream-7.9.5
ImportĀ upstreamĀ versionĀ 7.9.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Server-side
 
2
<reply>
 
3
<data>
 
4
HTTP/1.1 200 OK
 
5
Date: Thu, 09 Nov 2010 14:49:00 GMT
 
6
Server: test-server/fake
 
7
 
 
8
blablabla
 
9
 
 
10
</data>
 
11
</reply>
 
12
 
 
13
# Client-side
 
14
<client>
 
15
 <name>
 
16
HTTP RFC1867-type formposting without Expect: header
 
17
 </name>
 
18
 <command>
 
19
http://%HOSTIP:%HOSTPORT/we/want/44 -F name=daniel -F tool=curl -F file=@log/test44.txt -H 'Expect:'
 
20
</command>
 
21
# We create this file before the command is invoked!
 
22
<file name="log/test44.txt">
 
23
foo-
 
24
This is a moo-
 
25
bar
 
26
</file>
 
27
</test>
 
28
 
 
29
# Verify data after the test has been "shot"
 
30
<verify>
 
31
<strip>
 
32
^(User-Agent:|Content-Type: multipart/form-data;|--curl).*
 
33
</strip>
 
34
<protocol>
 
35
POST /we/want/44 HTTP/1.1
 
36
Host: 127.0.0.1:8999
 
37
Pragma: no-cache
 
38
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
 
39
Content-Length: 376
 
40
Content-Type: multipart/form-data; boundary=curluczemxkcWWsxptLlAImrFQHwQ3W
 
41
 
 
42
--curluczemxkcWWsxptLlAImrFQHwQ3W
 
43
Content-Disposition: form-data; name="name"
 
44
 
 
45
daniel
 
46
--curluczemxkcWWsxptLlAImrFQHwQ3W
 
47
Content-Disposition: form-data; name="tool"
 
48
 
 
49
curl
 
50
--curluczemxkcWWsxptLlAImrFQHwQ3W
 
51
Content-Disposition: form-data; name="file"; filename="log/test44.txt"
 
52
Content-Type: text/plain
 
53
 
 
54
foo-
 
55
This is a moo-
 
56
bar
 
57
--curluczemxkcWWsxptLlAImrFQHwQ3W--
 
58
 
 
59
</protocol>
 
60
</verify>