113498266Sopenharmony_ci<testcase> 213498266Sopenharmony_ci<info> 313498266Sopenharmony_ci<keywords> 413498266Sopenharmony_ciHTTP 513498266Sopenharmony_ciHTTP GET 613498266Sopenharmony_ciHTTP proxy 713498266Sopenharmony_ciHTTP Basic auth 813498266Sopenharmony_cifollowlocation 913498266Sopenharmony_cinetrc 1013498266Sopenharmony_ci</keywords> 1113498266Sopenharmony_ci</info> 1213498266Sopenharmony_ci 1313498266Sopenharmony_ci# Server-side 1413498266Sopenharmony_ci<reply> 1513498266Sopenharmony_ci<data> 1613498266Sopenharmony_ciHTTP/1.1 301 This is a weirdo text message swsclose 1713498266Sopenharmony_ciDate: Tue, 09 Nov 2010 14:49:00 GMT 1813498266Sopenharmony_ciServer: test-server/fake 1913498266Sopenharmony_ciLocation: http://anotherone.com/%TESTNUMBER0002 2013498266Sopenharmony_ciConnection: close 2113498266Sopenharmony_ci 2213498266Sopenharmony_ciThis server reply is for testing a simple Location: following 2313498266Sopenharmony_ci 2413498266Sopenharmony_ci</data> 2513498266Sopenharmony_ci<data2> 2613498266Sopenharmony_ciHTTP/1.1 302 Followed here fine swsclose 2713498266Sopenharmony_ciDate: Tue, 09 Nov 2010 14:49:00 GMT 2813498266Sopenharmony_ciServer: test-server/fake 2913498266Sopenharmony_ciLocation: http://athird.com/%TESTNUMBER0003 3013498266Sopenharmony_ci 3113498266Sopenharmony_ciIf this is received, the location following worked 3213498266Sopenharmony_ci 3313498266Sopenharmony_ci</data2> 3413498266Sopenharmony_ci<data3> 3513498266Sopenharmony_ciHTTP/1.1 200 Followed here fine swsclose 3613498266Sopenharmony_ciDate: Tue, 09 Nov 2010 14:49:00 GMT 3713498266Sopenharmony_ciServer: test-server/fake 3813498266Sopenharmony_ciContent-Length: 52 3913498266Sopenharmony_ci 4013498266Sopenharmony_ciIf this is received, the location following worked 4113498266Sopenharmony_ci 4213498266Sopenharmony_ci</data3> 4313498266Sopenharmony_ci<datacheck> 4413498266Sopenharmony_ciHTTP/1.1 301 This is a weirdo text message swsclose 4513498266Sopenharmony_ciDate: Tue, 09 Nov 2010 14:49:00 GMT 4613498266Sopenharmony_ciServer: test-server/fake 4713498266Sopenharmony_ciLocation: http://anotherone.com/%TESTNUMBER0002 4813498266Sopenharmony_ciConnection: close 4913498266Sopenharmony_ci 5013498266Sopenharmony_ciHTTP/1.1 302 Followed here fine swsclose 5113498266Sopenharmony_ciDate: Tue, 09 Nov 2010 14:49:00 GMT 5213498266Sopenharmony_ciServer: test-server/fake 5313498266Sopenharmony_ciLocation: http://athird.com/%TESTNUMBER0003 5413498266Sopenharmony_ci 5513498266Sopenharmony_ciHTTP/1.1 200 Followed here fine swsclose 5613498266Sopenharmony_ciDate: Tue, 09 Nov 2010 14:49:00 GMT 5713498266Sopenharmony_ciServer: test-server/fake 5813498266Sopenharmony_ciContent-Length: 52 5913498266Sopenharmony_ci 6013498266Sopenharmony_ciIf this is received, the location following worked 6113498266Sopenharmony_ci 6213498266Sopenharmony_ci</datacheck> 6313498266Sopenharmony_ci</reply> 6413498266Sopenharmony_ci 6513498266Sopenharmony_ci# Client-side 6613498266Sopenharmony_ci<client> 6713498266Sopenharmony_ci<server> 6813498266Sopenharmony_cihttp 6913498266Sopenharmony_ci</server> 7013498266Sopenharmony_ci<name> 7113498266Sopenharmony_ciHTTP Location: following with --netrc-optional 7213498266Sopenharmony_ci</name> 7313498266Sopenharmony_ci<command> 7413498266Sopenharmony_cihttp://supersite.com/want/%TESTNUMBER -L -x http://%HOSTIP:%HTTPPORT --netrc-optional --netrc-file %LOGDIR/netrc%TESTNUMBER 7513498266Sopenharmony_ci</command> 7613498266Sopenharmony_ci<features> 7713498266Sopenharmony_ciproxy 7813498266Sopenharmony_ci</features> 7913498266Sopenharmony_ci# netrc auth for two out of three sites: 8013498266Sopenharmony_ci<file name="%LOGDIR/netrc%TESTNUMBER"> 8113498266Sopenharmony_cimachine supersite.com login user1 password passwd1 8213498266Sopenharmony_cimachine anotherone.com login user2 password passwd2 8313498266Sopenharmony_ci</file> 8413498266Sopenharmony_ci</client> 8513498266Sopenharmony_ci 8613498266Sopenharmony_ci# Verify data after the test has been "shot" 8713498266Sopenharmony_ci<verify> 8813498266Sopenharmony_ci<protocol> 8913498266Sopenharmony_ciGET http://supersite.com/want/%TESTNUMBER HTTP/1.1 9013498266Sopenharmony_ciHost: supersite.com 9113498266Sopenharmony_ciAuthorization: Basic dXNlcjE6cGFzc3dkMQ== 9213498266Sopenharmony_ciUser-Agent: curl/%VERSION 9313498266Sopenharmony_ciAccept: */* 9413498266Sopenharmony_ciProxy-Connection: Keep-Alive 9513498266Sopenharmony_ci 9613498266Sopenharmony_ciGET http://anotherone.com/%TESTNUMBER0002 HTTP/1.1 9713498266Sopenharmony_ciHost: anotherone.com 9813498266Sopenharmony_ciAuthorization: Basic dXNlcjI6cGFzc3dkMg== 9913498266Sopenharmony_ciUser-Agent: curl/%VERSION 10013498266Sopenharmony_ciAccept: */* 10113498266Sopenharmony_ciProxy-Connection: Keep-Alive 10213498266Sopenharmony_ci 10313498266Sopenharmony_ciGET http://athird.com/%TESTNUMBER0003 HTTP/1.1 10413498266Sopenharmony_ciHost: athird.com 10513498266Sopenharmony_ciUser-Agent: curl/%VERSION 10613498266Sopenharmony_ciAccept: */* 10713498266Sopenharmony_ciProxy-Connection: Keep-Alive 10813498266Sopenharmony_ci 10913498266Sopenharmony_ci</protocol> 11013498266Sopenharmony_ci</verify> 11113498266Sopenharmony_ci</testcase> 112