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 GET 6*6236dae4SAndroid Build Coastguard WorkerHTTP proxy 7*6236dae4SAndroid Build Coastguard WorkerCURLOPT_PROXY 8*6236dae4SAndroid Build Coastguard WorkerCURLOPT_NOBODY 9*6236dae4SAndroid Build Coastguard WorkerCURLINFO_USED_PROXY 10*6236dae4SAndroid Build Coastguard Worker</keywords> 11*6236dae4SAndroid Build Coastguard Worker</info> 12*6236dae4SAndroid Build Coastguard Worker 13*6236dae4SAndroid Build Coastguard Worker# 14*6236dae4SAndroid Build Coastguard Worker# Server-side 15*6236dae4SAndroid Build Coastguard Worker<reply> 16*6236dae4SAndroid Build Coastguard Worker<data nocheck="yes"> 17*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 200 OK swsclose 18*6236dae4SAndroid Build Coastguard WorkerDate: Tue, 09 Nov 2010 14:49:00 GMT 19*6236dae4SAndroid Build Coastguard WorkerServer: test-server/fake 20*6236dae4SAndroid Build Coastguard WorkerLast-Modified: Tue, 13 Jun 2000 12:10:00 GMT 21*6236dae4SAndroid Build Coastguard WorkerETag: "21025-dc7-39462498" 22*6236dae4SAndroid Build Coastguard WorkerAccept-Ranges: bytes 23*6236dae4SAndroid Build Coastguard WorkerContent-Length: 6 24*6236dae4SAndroid Build Coastguard Worker 25*6236dae4SAndroid Build Coastguard Workerhello 26*6236dae4SAndroid Build Coastguard Worker</data> 27*6236dae4SAndroid Build Coastguard Worker</reply> 28*6236dae4SAndroid Build Coastguard Worker 29*6236dae4SAndroid Build Coastguard Worker# 30*6236dae4SAndroid Build Coastguard Worker# Client-side 31*6236dae4SAndroid Build Coastguard Worker<client> 32*6236dae4SAndroid Build Coastguard Worker<server> 33*6236dae4SAndroid Build Coastguard Workerhttp 34*6236dae4SAndroid Build Coastguard Worker</server> 35*6236dae4SAndroid Build Coastguard Worker<tool> 36*6236dae4SAndroid Build Coastguard Workerlib%TESTNUMBER 37*6236dae4SAndroid Build Coastguard Worker</tool> 38*6236dae4SAndroid Build Coastguard Worker<name> 39*6236dae4SAndroid Build Coastguard WorkerCURLINFO_USED_PROXY 40*6236dae4SAndroid Build Coastguard Worker</name> 41*6236dae4SAndroid Build Coastguard Worker 42*6236dae4SAndroid Build Coastguard Worker# provides: 43*6236dae4SAndroid Build Coastguard Worker# 0 - the proxy URL 44*6236dae4SAndroid Build Coastguard Worker# 1 - the non-proxy using URL 45*6236dae4SAndroid Build Coastguard Worker# 2 - the CURLOPT_RESOLVE string to change IP for the name 46*6236dae4SAndroid Build Coastguard Worker# 47*6236dae4SAndroid Build Coastguard Worker<command> 48*6236dae4SAndroid Build Coastguard Workerhttp://%HOSTIP:%HTTPPORT goingdirect.com:%HTTPPORT goingdirect.com:%HTTPPORT:%HOSTIP 49*6236dae4SAndroid Build Coastguard Worker</command> 50*6236dae4SAndroid Build Coastguard Worker<features> 51*6236dae4SAndroid Build Coastguard Workerproxy 52*6236dae4SAndroid Build Coastguard Worker</features> 53*6236dae4SAndroid Build Coastguard Worker</client> 54*6236dae4SAndroid Build Coastguard Worker 55*6236dae4SAndroid Build Coastguard Worker# 56*6236dae4SAndroid Build Coastguard Worker# Verify data after the test has been "shot" 57*6236dae4SAndroid Build Coastguard Worker<verify> 58*6236dae4SAndroid Build Coastguard Worker<protocol crlf="yes"> 59*6236dae4SAndroid Build Coastguard WorkerGET http://usingproxy.com/ HTTP/1.1 60*6236dae4SAndroid Build Coastguard WorkerHost: usingproxy.com 61*6236dae4SAndroid Build Coastguard WorkerAccept: */* 62*6236dae4SAndroid Build Coastguard WorkerProxy-Connection: Keep-Alive 63*6236dae4SAndroid Build Coastguard Worker 64*6236dae4SAndroid Build Coastguard WorkerGET / HTTP/1.1 65*6236dae4SAndroid Build Coastguard WorkerHost: goingdirect.com:%HTTPPORT 66*6236dae4SAndroid Build Coastguard WorkerAccept: */* 67*6236dae4SAndroid Build Coastguard Worker 68*6236dae4SAndroid Build Coastguard Worker</protocol> 69*6236dae4SAndroid Build Coastguard Worker<stdout mode="text"> 70*6236dae4SAndroid Build Coastguard Workerhello 71*6236dae4SAndroid Build Coastguard WorkerThis used the proxy 72*6236dae4SAndroid Build Coastguard Workerhello 73*6236dae4SAndroid Build Coastguard WorkerThis DID NOT use the proxy 74*6236dae4SAndroid Build Coastguard Worker</stdout> 75*6236dae4SAndroid Build Coastguard Worker</verify> 76*6236dae4SAndroid Build Coastguard Worker</testcase> 77