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

« back to all changes in this revision

Viewing changes to tests/data/test1015

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2008-02-08 11:20:41 UTC
  • mto: (3.1.1 lenny) (1.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 26.
  • Revision ID: james.westby@ubuntu.com-20080208112041-hed7sb5r6ghmjf8v
Tags: upstream-7.18.0
ImportĀ upstreamĀ versionĀ 7.18.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<testcase>
 
2
<info>
 
3
<keywords>
 
4
--data-urlencode
 
5
</keywords>
 
6
</info>
 
7
 
 
8
#
 
9
# Server-side
 
10
<reply>
 
11
<data>
 
12
HTTP/1.1 200 I am cool swsclose
 
13
Server: Cool server/10.0
 
14
Content-Length: 0
 
15
 
 
16
</data>
 
17
</reply>
 
18
 
 
19
#
 
20
# Client-side
 
21
<client>
 
22
<server>
 
23
http
 
24
</server>
 
25
 <name>
 
26
--data-urlencode
 
27
 </name>
 
28
 <command>
 
29
http://%HOSTIP:%HTTPPORT/1015 --data-urlencode "my name is moo[]" --data-urlencode "y e s=s_i_r" --data-urlencode "v_alue@log/1015.txt" --data-urlencode @log/1015.txt 
 
30
</command>
 
31
<file name="log/1015.txt">
 
32
content to _?!#$'|<>
 
33
</file>
 
34
</client>
 
35
 
 
36
#
 
37
# Verify data after the test has been "shot"
 
38
<verify>
 
39
<strip>
 
40
^User-Agent:.*
 
41
</strip>
 
42
<protocol nonewline="yes">
 
43
POST /1015 HTTP/1.1
 
44
User-Agent: curl/7.17.2-CVS (i686-pc-linux-gnu) libcurl/7.17.2-CVS OpenSSL/0.9.8g zlib/1.2.3.3 c-ares/1.5.2-CVS libidn/1.1 libssh2/0.19.0-C
 
45
Host: %HOSTIP:%HTTPPORT
 
46
Accept: */*
 
47
Content-Length: 141
 
48
Content-Type: application/x-www-form-urlencoded
 
49
 
 
50
my%20name%20is%20moo%5B%5D&y e s=s%5Fi%5Fr&v_alue=content%20to%20%5F%3F%21%23%24%27%7C%3C%3E%0A&content%20to%20%5F%3F%21%23%24%27%7C%3C%3E%0A
 
51
</protocol>
 
52
</verify>
 
53
</testcase>