xref: /third_party/curl/tests/data/test258 (revision 13498266)
113498266Sopenharmony_ci<testcase>
213498266Sopenharmony_ci<info>
313498266Sopenharmony_ci<keywords>
413498266Sopenharmony_ciHTTP
513498266Sopenharmony_ciHTTP FORMPOST
613498266Sopenharmony_ciHTTP replaced headers
713498266Sopenharmony_ciHTTP proxy
813498266Sopenharmony_ciHTTP proxy Digest auth
913498266Sopenharmony_ci--proxy-anyauth
1013498266Sopenharmony_ci</keywords>
1113498266Sopenharmony_ci
1213498266Sopenharmony_ci</info>
1313498266Sopenharmony_ci# Server-side
1413498266Sopenharmony_ci<reply>
1513498266Sopenharmony_ci# The stupid test server doesn't response anything at all until the full
1613498266Sopenharmony_ci# request has been sent, and then of course the full POST has already been
1713498266Sopenharmony_ci# sent!
1813498266Sopenharmony_ci<data>
1913498266Sopenharmony_ciHTTP/1.1 407 no, tell me who you are first swsclose
2013498266Sopenharmony_ciDate: Tue, 09 Nov 2010 14:49:00 GMT
2113498266Sopenharmony_ciServer: test-server/fake
2213498266Sopenharmony_ciProxy-Authenticate: Digest realm="many secrets", nonce="911"
2313498266Sopenharmony_ciProxy-Connection: close
2413498266Sopenharmony_ciContent-Length: 0
2513498266Sopenharmony_ci
2613498266Sopenharmony_ci</data>
2713498266Sopenharmony_ci<data1000>
2813498266Sopenharmony_ciHTTP/1.1 200 A OK
2913498266Sopenharmony_ciServer: Microsoft-IIS/6.0
3013498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1
3113498266Sopenharmony_ciContent-Length: 3
3213498266Sopenharmony_ci
3313498266Sopenharmony_ciok
3413498266Sopenharmony_ci</data1000>
3513498266Sopenharmony_ci<datacheck>
3613498266Sopenharmony_ciHTTP/1.1 407 no, tell me who you are first swsclose
3713498266Sopenharmony_ciDate: Tue, 09 Nov 2010 14:49:00 GMT
3813498266Sopenharmony_ciServer: test-server/fake
3913498266Sopenharmony_ciProxy-Authenticate: Digest realm="many secrets", nonce="911"
4013498266Sopenharmony_ciProxy-Connection: close
4113498266Sopenharmony_ciContent-Length: 0
4213498266Sopenharmony_ci
4313498266Sopenharmony_ciHTTP/1.1 200 A OK
4413498266Sopenharmony_ciServer: Microsoft-IIS/6.0
4513498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1
4613498266Sopenharmony_ciContent-Length: 3
4713498266Sopenharmony_ci
4813498266Sopenharmony_ciok
4913498266Sopenharmony_ci</datacheck>
5013498266Sopenharmony_ci
5113498266Sopenharmony_ci</reply>
5213498266Sopenharmony_ci
5313498266Sopenharmony_ci# Client-side
5413498266Sopenharmony_ci<client>
5513498266Sopenharmony_ci<server>
5613498266Sopenharmony_cihttp
5713498266Sopenharmony_ci</server>
5813498266Sopenharmony_ci<features>
5913498266Sopenharmony_ciMime
6013498266Sopenharmony_ci!SSPI
6113498266Sopenharmony_cicrypto
6213498266Sopenharmony_ciproxy
6313498266Sopenharmony_ci</features>
6413498266Sopenharmony_ci<name>
6513498266Sopenharmony_ciHTTP POST multipart without Expect: header using proxy anyauth (Digest)
6613498266Sopenharmony_ci</name>
6713498266Sopenharmony_ci<command>
6813498266Sopenharmony_ci-x http://%HOSTIP:%HTTPPORT http://remotehost:54321/we/want/%TESTNUMBER -F name=daniel -F tool=curl -F file=@%LOGDIR/test%TESTNUMBER.txt -H "Expect:" -U uuuser:pppassword --proxy-anyauth
6913498266Sopenharmony_ci</command>
7013498266Sopenharmony_ci# We create this file before the command is invoked!
7113498266Sopenharmony_ci<file name="%LOGDIR/test%TESTNUMBER.txt">
7213498266Sopenharmony_cifoo-
7313498266Sopenharmony_ciThis is a moo-
7413498266Sopenharmony_cibar
7513498266Sopenharmony_ci</file>
7613498266Sopenharmony_ci</client>
7713498266Sopenharmony_ci
7813498266Sopenharmony_ci# Verify data after the test has been "shot"
7913498266Sopenharmony_ci<verify>
8013498266Sopenharmony_ci<strip>
8113498266Sopenharmony_ci^(Content-Type: multipart/form-data;|------).*
8213498266Sopenharmony_ci</strip>
8313498266Sopenharmony_ci<protocol>
8413498266Sopenharmony_ciPOST http://remotehost:54321/we/want/%TESTNUMBER HTTP/1.1
8513498266Sopenharmony_ciHost: remotehost:54321
8613498266Sopenharmony_ciUser-Agent: curl/%VERSION
8713498266Sopenharmony_ciAccept: */*
8813498266Sopenharmony_ciProxy-Connection: Keep-Alive
8913498266Sopenharmony_ciContent-Length: 433
9013498266Sopenharmony_ciContent-Type: multipart/form-data; boundary=----------------------------7c633d5c27ce
9113498266Sopenharmony_ci
9213498266Sopenharmony_ci------------------------------7c633d5c27ce
9313498266Sopenharmony_ciContent-Disposition: form-data; name="name"
9413498266Sopenharmony_ci
9513498266Sopenharmony_cidaniel
9613498266Sopenharmony_ci------------------------------7c633d5c27ce
9713498266Sopenharmony_ciContent-Disposition: form-data; name="tool"
9813498266Sopenharmony_ci
9913498266Sopenharmony_cicurl
10013498266Sopenharmony_ci------------------------------7c633d5c27ce
10113498266Sopenharmony_ciContent-Disposition: form-data; name="file"; filename="test%TESTNUMBER.txt"
10213498266Sopenharmony_ciContent-Type: text/plain
10313498266Sopenharmony_ci
10413498266Sopenharmony_cifoo-
10513498266Sopenharmony_ciThis is a moo-
10613498266Sopenharmony_cibar
10713498266Sopenharmony_ci
10813498266Sopenharmony_ci------------------------------7c633d5c27ce--
10913498266Sopenharmony_ciPOST http://remotehost:54321/we/want/%TESTNUMBER HTTP/1.1
11013498266Sopenharmony_ciHost: remotehost:54321
11113498266Sopenharmony_ciProxy-Authorization: Digest username="uuuser", realm="many secrets", nonce="911", uri="/we/want/%TESTNUMBER", response="2501654ca391f0b5c8c12a1da77e34cd"
11213498266Sopenharmony_ciUser-Agent: curl/%VERSION
11313498266Sopenharmony_ciAccept: */*
11413498266Sopenharmony_ciProxy-Connection: Keep-Alive
11513498266Sopenharmony_ciContent-Length: 433
11613498266Sopenharmony_ciContent-Type: multipart/form-data; boundary=----------------------------7c633d5c27ce
11713498266Sopenharmony_ci
11813498266Sopenharmony_ci------------------------------7c633d5c27ce
11913498266Sopenharmony_ciContent-Disposition: form-data; name="name"
12013498266Sopenharmony_ci
12113498266Sopenharmony_cidaniel
12213498266Sopenharmony_ci------------------------------7c633d5c27ce
12313498266Sopenharmony_ciContent-Disposition: form-data; name="tool"
12413498266Sopenharmony_ci
12513498266Sopenharmony_cicurl
12613498266Sopenharmony_ci------------------------------7c633d5c27ce
12713498266Sopenharmony_ciContent-Disposition: form-data; name="file"; filename="test%TESTNUMBER.txt"
12813498266Sopenharmony_ciContent-Type: text/plain
12913498266Sopenharmony_ci
13013498266Sopenharmony_cifoo-
13113498266Sopenharmony_ciThis is a moo-
13213498266Sopenharmony_cibar
13313498266Sopenharmony_ci
13413498266Sopenharmony_ci------------------------------7c633d5c27ce--
13513498266Sopenharmony_ci</protocol>
13613498266Sopenharmony_ci</verify>
13713498266Sopenharmony_ci</testcase>
138