~ubuntu-branches/ubuntu/natty/curl/natty-proposed

« back to all changes in this revision

Viewing changes to tests/data/test1097

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Schuldei
  • Date: 2009-05-24 21:12:19 UTC
  • mfrom: (1.1.12 upstream)
  • mto: (3.3.1 squeeze)
  • mto: This revision was merged to the branch mainline in revision 39.
  • Revision ID: james.westby@ubuntu.com-20090524211219-7jgcwuhl04ixuqsm
Tags: upstream-7.19.5
ImportĀ upstreamĀ versionĀ 7.19.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<testcase>
 
2
<info>
 
3
<keywords>
 
4
HTTP
 
5
HTTP POST
 
6
HTTP proxy
 
7
HTTP proxy NTLM auth
 
8
</keywords>
 
9
</info>
 
10
 
 
11
# Server-side
 
12
<reply>
 
13
<data>
 
14
HTTP/1.1 200 We are fine and cool
 
15
Server: Apache/1.3.27 (Dorw1n) PHP/44.1.2
 
16
Content-Length: 27
 
17
 
 
18
This is all fine and dandy
 
19
</data>
 
20
<data1001>
 
21
HTTP/1.1 200 We are fine and cool
 
22
Server: Apache/1.3.27 (Dorw1n) PHP/44.1.2
 
23
Content-Length: 27
 
24
 
 
25
This is all fine and dandy
 
26
</data1001>
 
27
<datacheck>
 
28
HTTP/1.1 200 We are fine and cool
 
29
Server: Apache/1.3.27 (Dorw1n) PHP/44.1.2
 
30
Content-Length: 27
 
31
 
 
32
HTTP/1.1 200 We are fine and cool
 
33
Server: Apache/1.3.27 (Dorw1n) PHP/44.1.2
 
34
Content-Length: 27
 
35
 
 
36
This is all fine and dandy
 
37
</datacheck>
 
38
</reply>
 
39
 
 
40
# Client-side
 
41
<client>
 
42
<server>
 
43
https
 
44
</server>
 
45
<features>
 
46
none
 
47
</features>
 
48
 <name>
 
49
HTTP POST using CONNECT with --proxy-ntlm but no auth is required
 
50
 </name>
 
51
 <command>
 
52
http://test.a.galaxy.far.far.away:1097/1097 --proxy http://%HOSTIP:%HTTPPORT --proxy-user foo:bar --proxy-ntlm -d "dummy=value" -p
 
53
</command>
 
54
</client>
 
55
 
 
56
# Verify data after the test has been "shot"
 
57
<verify>
 
58
<strip>
 
59
^User-Agent: curl/.*
 
60
</strip>
 
61
<protocol>
 
62
CONNECT test.a.galaxy.far.far.away:1097 HTTP/1.1
 
63
Host: test.a.galaxy.far.far.away:1097
 
64
Proxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
 
65
User-Agent: curl/7.19.5-CVS (i686-pc-linux-gnu) libcurl/7.19.5-CVS OpenSSL/0.9.8g zlib/1.2.3.3 c-ares/1.6.1-CVS libidn/1.12 libssh2/1.0.1_CVS
 
66
Proxy-Connection: Keep-Alive
 
67
 
 
68
POST /1097 HTTP/1.1
 
69
User-Agent: curl/7.19.5-CVS (i686-pc-linux-gnu) libcurl/7.19.5-CVS OpenSSL/0.9.8g zlib/1.2.3.3 c-ares/1.6.1-CVS libidn/1.12 libssh2/1.0.1_CVS
 
70
Host: test.a.galaxy.far.far.away:1097
 
71
Accept: */*
 
72
Content-Length: 0
 
73
Content-Type: application/x-www-form-urlencoded
 
74
 
 
75
</protocol>
 
76
 
 
77
</verify>
 
78
</testcase>