Home | History | Annotate | Download | only in data
      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP FORMPOST
      6 HTTP replaced headers
      7 HTTP proxy
      8 HTTP proxy Digest auth
      9 --proxy-anyauth
     10 </keywords>
     11 
     12 </info>
     13 # Server-side
     14 <reply>
     15 # The stupid test server doesn't response anything at all until the full
     16 # request has been sent, and then of course the full POST has already been
     17 # sent!
     18 <data>
     19 HTTP/1.1 407 no, tell me who you are first swsclose
     20 Date: Thu, 09 Nov 2010 14:49:00 GMT
     21 Server: test-server/fake
     22 Proxy-Authenticate: Digest realm="many secrets", nonce="911"
     23 Proxy-Connection: close
     24 Content-Length: 0
     25 
     26 </data>
     27 <data1000>
     28 HTTP/1.1 200 A OK
     29 Server: Microsoft-IIS/6.0
     30 Content-Type: text/html; charset=iso-8859-1
     31 Content-Length: 3
     32 
     33 ok
     34 </data1000>
     35 <datacheck>
     36 HTTP/1.1 407 no, tell me who you are first swsclose
     37 Date: Thu, 09 Nov 2010 14:49:00 GMT
     38 Server: test-server/fake
     39 Proxy-Authenticate: Digest realm="many secrets", nonce="911"
     40 Proxy-Connection: close
     41 Content-Length: 0
     42 
     43 HTTP/1.1 200 A OK
     44 Server: Microsoft-IIS/6.0
     45 Content-Type: text/html; charset=iso-8859-1
     46 Content-Length: 3
     47 
     48 ok
     49 </datacheck>
     50 
     51 </reply>
     52 
     53 # Client-side
     54 <client>
     55 <server>
     56 http
     57 </server>
     58 <features>
     59 !SSPI
     60 crypto
     61 </features>
     62  <name>
     63 HTTP POST multipart without Expect: header using proxy anyauth (Digest)
     64  </name>
     65  <command>
     66 -x http://%HOSTIP:%HTTPPORT http://remotehost:54321/we/want/258 -F name=daniel -F tool=curl -F file=@log/test258.txt -H "Expect:" -U uuuser:pppassword --proxy-anyauth
     67 </command>
     68 # We create this file before the command is invoked!
     69 <file name="log/test258.txt">
     70 foo-
     71 This is a moo-
     72 bar
     73 </file>
     74 </client>
     75 
     76 # Verify data after the test has been "shot"
     77 <verify>
     78 <strip>
     79 ^(User-Agent:|Content-Type: multipart/form-data;|------).*
     80 </strip>
     81 <protocol>
     82 POST http://remotehost:54321/we/want/258 HTTP/1.1
     83 Host: remotehost:54321
     84 User-Agent: curl/7.10.4 (i686-pc-linux-gnu) libcurl/7.10.4 OpenSSL/0.9.7a ipv6 zlib/1.1.3
     85 Accept: */*
     86 Proxy-Connection: Keep-Alive
     87 Content-Length: 409
     88 Content-Type: multipart/form-data; boundary=----------------------------7c633d5c27ce
     89 
     90 ------------------------------7c633d5c27ce
     91 Content-Disposition: form-data; name="name"
     92 
     93 daniel
     94 ------------------------------7c633d5c27ce
     95 Content-Disposition: form-data; name="tool"
     96 
     97 curl
     98 ------------------------------7c633d5c27ce
     99 Content-Disposition: form-data; name="file"; filename="test258.txt"
    100 Content-Type: text/plain
    101 
    102 foo-
    103 This is a moo-
    104 bar
    105 
    106 ------------------------------7c633d5c27ce--
    107 POST http://remotehost:54321/we/want/258 HTTP/1.1
    108 Host: remotehost:54321
    109 User-Agent: curl/7.10.4 (i686-pc-linux-gnu) libcurl/7.10.4 OpenSSL/0.9.7a ipv6 zlib/1.1.3
    110 Proxy-Authorization: Digest username="uuuser", realm="many secrets", nonce="911", uri="/we/want/258", response="2501654ca391f0b5c8c12a1da77e34cd"
    111 Accept: */*
    112 Proxy-Connection: Keep-Alive
    113 Content-Length: 409
    114 Content-Type: multipart/form-data; boundary=----------------------------7c633d5c27ce
    115 
    116 ------------------------------7c633d5c27ce
    117 Content-Disposition: form-data; name="name"
    118 
    119 daniel
    120 ------------------------------7c633d5c27ce
    121 Content-Disposition: form-data; name="tool"
    122 
    123 curl
    124 ------------------------------7c633d5c27ce
    125 Content-Disposition: form-data; name="file"; filename="test258.txt"
    126 Content-Type: text/plain
    127 
    128 foo-
    129 This is a moo-
    130 bar
    131 
    132 ------------------------------7c633d5c27ce--
    133 </protocol>
    134 </verify>
    135 </testcase>
    136