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 WorkerCURLOPT_CURLU 6*6236dae4SAndroid Build Coastguard Worker</keywords> 7*6236dae4SAndroid Build Coastguard Worker</info> 8*6236dae4SAndroid Build Coastguard Worker# 9*6236dae4SAndroid Build Coastguard Worker# Similar to 1518 but using CURLOPT_CURLU 10*6236dae4SAndroid Build Coastguard Worker# 11*6236dae4SAndroid Build Coastguard Worker# Server-side 12*6236dae4SAndroid Build Coastguard Worker<reply> 13*6236dae4SAndroid Build Coastguard Worker<data2 nocheck="yes"> 14*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 200 OK 15*6236dae4SAndroid Build Coastguard WorkerDate: Thu, 17 Mar 2016 14:41:00 GMT 16*6236dae4SAndroid Build Coastguard WorkerServer: test-server/fake 17*6236dae4SAndroid Build Coastguard WorkerX-Special: swsclose 18*6236dae4SAndroid Build Coastguard WorkerContent-Length: 0 19*6236dae4SAndroid Build Coastguard WorkerConnection: close 20*6236dae4SAndroid Build Coastguard Worker 21*6236dae4SAndroid Build Coastguard Worker</data2> 22*6236dae4SAndroid Build Coastguard Worker<data nocheck="yes"> 23*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 302 redirect 24*6236dae4SAndroid Build Coastguard WorkerDate: Thu, 17 Mar 2016 14:41:00 GMT 25*6236dae4SAndroid Build Coastguard WorkerServer: test-server/fake 26*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/plain; charset=US-ASCII 27*6236dae4SAndroid Build Coastguard WorkerLocation: ../%TESTNUMBER0002 28*6236dae4SAndroid Build Coastguard WorkerContent-Length: 0 29*6236dae4SAndroid Build Coastguard WorkerConnection: close 30*6236dae4SAndroid Build Coastguard Worker 31*6236dae4SAndroid Build Coastguard Worker</data> 32*6236dae4SAndroid Build Coastguard Worker</reply> 33*6236dae4SAndroid Build Coastguard Worker 34*6236dae4SAndroid Build Coastguard Worker# Client-side 35*6236dae4SAndroid Build Coastguard Worker<client> 36*6236dae4SAndroid Build Coastguard Worker<server> 37*6236dae4SAndroid Build Coastguard Workerhttp 38*6236dae4SAndroid Build Coastguard Worker</server> 39*6236dae4SAndroid Build Coastguard Worker# tool is what to use instead of 'curl' 40*6236dae4SAndroid Build Coastguard Worker<tool> 41*6236dae4SAndroid Build Coastguard Workerlib%TESTNUMBER 42*6236dae4SAndroid Build Coastguard Worker</tool> 43*6236dae4SAndroid Build Coastguard Worker 44*6236dae4SAndroid Build Coastguard Worker<name> 45*6236dae4SAndroid Build Coastguard WorkerCURLOPT_CURLU, URL with space and CURLINFO_EFFECTIVE_URL 46*6236dae4SAndroid Build Coastguard Worker</name> 47*6236dae4SAndroid Build Coastguard Worker<command> 48*6236dae4SAndroid Build Coastguard Worker"http://%HOSTIP:%HTTPPORT/ /with/ space/ /file" 49*6236dae4SAndroid Build Coastguard Worker</command> 50*6236dae4SAndroid Build Coastguard Worker</client> 51*6236dae4SAndroid Build Coastguard Worker 52*6236dae4SAndroid Build Coastguard Worker# 53*6236dae4SAndroid Build Coastguard Worker# Verify data after the test has been "shot" 54*6236dae4SAndroid Build Coastguard Worker<verify> 55*6236dae4SAndroid Build Coastguard Worker<protocol> 56*6236dae4SAndroid Build Coastguard WorkerGET /%20/with/%20space/%20/file HTTP/1.1 57*6236dae4SAndroid Build Coastguard WorkerHost: %HOSTIP:%HTTPPORT 58*6236dae4SAndroid Build Coastguard WorkerAccept: */* 59*6236dae4SAndroid Build Coastguard Worker 60*6236dae4SAndroid Build Coastguard WorkerGET /%20/with/%20space/%TESTNUMBER0002 HTTP/1.1 61*6236dae4SAndroid Build Coastguard WorkerHost: %HOSTIP:%HTTPPORT 62*6236dae4SAndroid Build Coastguard WorkerAccept: */* 63*6236dae4SAndroid Build Coastguard Worker 64*6236dae4SAndroid Build Coastguard Worker</protocol> 65*6236dae4SAndroid Build Coastguard Worker<stdout> 66*6236dae4SAndroid Build Coastguard Workerres 0 67*6236dae4SAndroid Build Coastguard Workerstatus 200 68*6236dae4SAndroid Build Coastguard Workerredirects 1 69*6236dae4SAndroid Build Coastguard Workereffectiveurl http://%HOSTIP:%HTTPPORT/%20/with/%20space/%TESTNUMBER0002 70*6236dae4SAndroid Build Coastguard Workerredirecturl blank 71*6236dae4SAndroid Build Coastguard Worker</stdout> 72*6236dae4SAndroid Build Coastguard Worker<errorcode> 73*6236dae4SAndroid Build Coastguard Worker0 74*6236dae4SAndroid Build Coastguard Worker</errorcode> 75*6236dae4SAndroid Build Coastguard Worker</verify> 76*6236dae4SAndroid Build Coastguard Worker</testcase> 77