1*6236dae4SAndroid Build Coastguard Worker<testcase> 2*6236dae4SAndroid Build Coastguard Worker<info> 3*6236dae4SAndroid Build Coastguard Worker<keywords> 4*6236dae4SAndroid Build Coastguard WorkerHTTP 5*6236dae4SAndroid Build Coastguard WorkerHTTP POST 6*6236dae4SAndroid Build Coastguard WorkerHTTP CONNECT 7*6236dae4SAndroid Build Coastguard WorkerHTTP proxy 8*6236dae4SAndroid Build Coastguard WorkerHTTP proxy NTLM auth 9*6236dae4SAndroid Build Coastguard Worker</keywords> 10*6236dae4SAndroid Build Coastguard Worker</info> 11*6236dae4SAndroid Build Coastguard Worker 12*6236dae4SAndroid Build Coastguard Worker# Server-side 13*6236dae4SAndroid Build Coastguard Worker<reply> 14*6236dae4SAndroid Build Coastguard Worker<data> 15*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 200 We are fine and cool 16*6236dae4SAndroid Build Coastguard WorkerServer: Apache/1.3.27 (Dorw1n) PHP/44.1.2 17*6236dae4SAndroid Build Coastguard WorkerContent-Length: 27 18*6236dae4SAndroid Build Coastguard Worker 19*6236dae4SAndroid Build Coastguard WorkerThis is all fine and dandy 20*6236dae4SAndroid Build Coastguard Worker</data> 21*6236dae4SAndroid Build Coastguard Worker 22*6236dae4SAndroid Build Coastguard Worker# This is the CONNECT response 23*6236dae4SAndroid Build Coastguard Worker<connect1001> 24*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 200 We are fine and cool 25*6236dae4SAndroid Build Coastguard WorkerServer: Apache/1.3.27 (Dorw1n) PHP/44.1.2 26*6236dae4SAndroid Build Coastguard Worker 27*6236dae4SAndroid Build Coastguard Worker</connect1001> 28*6236dae4SAndroid Build Coastguard Worker 29*6236dae4SAndroid Build Coastguard Worker<datacheck> 30*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 200 We are fine and cool 31*6236dae4SAndroid Build Coastguard WorkerServer: Apache/1.3.27 (Dorw1n) PHP/44.1.2 32*6236dae4SAndroid Build Coastguard Worker 33*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 200 We are fine and cool 34*6236dae4SAndroid Build Coastguard WorkerServer: Apache/1.3.27 (Dorw1n) PHP/44.1.2 35*6236dae4SAndroid Build Coastguard WorkerContent-Length: 27 36*6236dae4SAndroid Build Coastguard Worker 37*6236dae4SAndroid Build Coastguard WorkerThis is all fine and dandy 38*6236dae4SAndroid Build Coastguard Worker</datacheck> 39*6236dae4SAndroid Build Coastguard Worker</reply> 40*6236dae4SAndroid Build Coastguard Worker 41*6236dae4SAndroid Build Coastguard Worker# Client-side 42*6236dae4SAndroid Build Coastguard Worker<client> 43*6236dae4SAndroid Build Coastguard Worker<server> 44*6236dae4SAndroid Build Coastguard Workerhttps 45*6236dae4SAndroid Build Coastguard Worker</server> 46*6236dae4SAndroid Build Coastguard Worker<features> 47*6236dae4SAndroid Build Coastguard WorkerNTLM 48*6236dae4SAndroid Build Coastguard WorkerSSL 49*6236dae4SAndroid Build Coastguard Worker!SSPI 50*6236dae4SAndroid Build Coastguard Workerproxy 51*6236dae4SAndroid Build Coastguard Worker</features> 52*6236dae4SAndroid Build Coastguard Worker<name> 53*6236dae4SAndroid Build Coastguard WorkerHTTP POST using CONNECT with --proxy-ntlm but no auth is required 54*6236dae4SAndroid Build Coastguard Worker</name> 55*6236dae4SAndroid Build Coastguard Worker<command> 56*6236dae4SAndroid Build Coastguard Workerhttp://test.a.galaxy.far.far.away.%TESTNUMBER:%HTTPPORT/%TESTNUMBER --proxy http://%HOSTIP:%HTTPPORT --proxy-user foo:bar --proxy-ntlm -d "dummy=value" -p 57*6236dae4SAndroid Build Coastguard Worker</command> 58*6236dae4SAndroid Build Coastguard Worker</client> 59*6236dae4SAndroid Build Coastguard Worker 60*6236dae4SAndroid Build Coastguard Worker# Verify data after the test has been "shot" 61*6236dae4SAndroid Build Coastguard Worker<verify> 62*6236dae4SAndroid Build Coastguard Worker<protocol nonewline="yes"> 63*6236dae4SAndroid Build Coastguard WorkerCONNECT test.a.galaxy.far.far.away.%TESTNUMBER:%HTTPPORT HTTP/1.1 64*6236dae4SAndroid Build Coastguard WorkerHost: test.a.galaxy.far.far.away.%TESTNUMBER:%HTTPPORT 65*6236dae4SAndroid Build Coastguard WorkerProxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA= 66*6236dae4SAndroid Build Coastguard WorkerUser-Agent: curl/%VERSION 67*6236dae4SAndroid Build Coastguard WorkerProxy-Connection: Keep-Alive 68*6236dae4SAndroid Build Coastguard Worker 69*6236dae4SAndroid Build Coastguard WorkerPOST /%TESTNUMBER HTTP/1.1 70*6236dae4SAndroid Build Coastguard WorkerHost: test.a.galaxy.far.far.away.%TESTNUMBER:%HTTPPORT 71*6236dae4SAndroid Build Coastguard WorkerUser-Agent: curl/%VERSION 72*6236dae4SAndroid Build Coastguard WorkerAccept: */* 73*6236dae4SAndroid Build Coastguard WorkerContent-Length: 11 74*6236dae4SAndroid Build Coastguard WorkerContent-Type: application/x-www-form-urlencoded 75*6236dae4SAndroid Build Coastguard Worker 76*6236dae4SAndroid Build Coastguard Workerdummy=value 77*6236dae4SAndroid Build Coastguard Worker</protocol> 78*6236dae4SAndroid Build Coastguard Worker 79*6236dae4SAndroid Build Coastguard Worker</verify> 80*6236dae4SAndroid Build Coastguard Worker</testcase> 81