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 Workercookies 7*6236dae4SAndroid Build Coastguard Workercookiejar 8*6236dae4SAndroid Build Coastguard Worker</keywords> 9*6236dae4SAndroid Build Coastguard Worker</info> 10*6236dae4SAndroid Build Coastguard Worker 11*6236dae4SAndroid Build Coastguard Worker# Server-side 12*6236dae4SAndroid Build Coastguard Worker<reply> 13*6236dae4SAndroid Build Coastguard Worker<data> 14*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 200 OK 15*6236dae4SAndroid Build Coastguard WorkerDate: Tue, 09 Nov 2010 14:49:00 GMT 16*6236dae4SAndroid Build Coastguard WorkerServer: test-server/fake 17*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html 18*6236dae4SAndroid Build Coastguard WorkerFunny-head: yesyes swsclose 19*6236dae4SAndroid Build Coastguard WorkerSet-Cookie: foobar=name; 20*6236dae4SAndroid Build Coastguard WorkerSet-Cookie: mismatch=this; domain=127.0.0.1; path="/silly/"; 21*6236dae4SAndroid Build Coastguard WorkerSet-Cookie: partmatch=present; domain=.0.0.1; path=/; 22*6236dae4SAndroid Build Coastguard WorkerSet-Cookie: foo bar=barfoo 23*6236dae4SAndroid Build Coastguard WorkerSet-Cookie: bar foo= 24*6236dae4SAndroid Build Coastguard WorkerSet-Cookie: bar=foo bar 25*6236dae4SAndroid Build Coastguard Worker 26*6236dae4SAndroid Build Coastguard Worker</data> 27*6236dae4SAndroid Build Coastguard Worker</reply> 28*6236dae4SAndroid Build Coastguard Worker 29*6236dae4SAndroid Build Coastguard Worker# Client-side 30*6236dae4SAndroid Build Coastguard Worker<client> 31*6236dae4SAndroid Build Coastguard Worker<server> 32*6236dae4SAndroid Build Coastguard Workerhttp 33*6236dae4SAndroid Build Coastguard Worker</server> 34*6236dae4SAndroid Build Coastguard Worker<name> 35*6236dae4SAndroid Build Coastguard WorkerHTTP with cookie parser and header recording 36*6236dae4SAndroid Build Coastguard Worker</name> 37*6236dae4SAndroid Build Coastguard Worker<command> 38*6236dae4SAndroid Build Coastguard Worker"http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER?parm1=this*that/other/thing&parm2=foobar/%TESTNUMBER" -c %LOGDIR/cookie%TESTNUMBER.txt -d "userid=myname&password=mypassword" 39*6236dae4SAndroid Build Coastguard Worker</command> 40*6236dae4SAndroid Build Coastguard Worker<features> 41*6236dae4SAndroid Build Coastguard Workercookies 42*6236dae4SAndroid Build Coastguard Workerlocal-http 43*6236dae4SAndroid Build Coastguard Worker</features> 44*6236dae4SAndroid Build Coastguard Worker</client> 45*6236dae4SAndroid Build Coastguard Worker 46*6236dae4SAndroid Build Coastguard Worker# Verify data after the test has been "shot" 47*6236dae4SAndroid Build Coastguard Worker<verify> 48*6236dae4SAndroid Build Coastguard Worker<protocol nonewline="yes"> 49*6236dae4SAndroid Build Coastguard WorkerPOST /we/want/%TESTNUMBER?parm1=this*that/other/thing&parm2=foobar/%TESTNUMBER HTTP/1.1 50*6236dae4SAndroid Build Coastguard WorkerHost: %HOSTIP:%HTTPPORT 51*6236dae4SAndroid Build Coastguard WorkerUser-Agent: curl/%VERSION 52*6236dae4SAndroid Build Coastguard WorkerAccept: */* 53*6236dae4SAndroid Build Coastguard WorkerContent-Length: 33 54*6236dae4SAndroid Build Coastguard WorkerContent-Type: application/x-www-form-urlencoded 55*6236dae4SAndroid Build Coastguard Worker 56*6236dae4SAndroid Build Coastguard Workeruserid=myname&password=mypassword 57*6236dae4SAndroid Build Coastguard Worker</protocol> 58*6236dae4SAndroid Build Coastguard Worker<file name="%LOGDIR/cookie%TESTNUMBER.txt" mode="text"> 59*6236dae4SAndroid Build Coastguard Worker# Netscape HTTP Cookie File 60*6236dae4SAndroid Build Coastguard Worker# https://curl.se/docs/http-cookies.html 61*6236dae4SAndroid Build Coastguard Worker# This file was generated by libcurl! Edit at your own risk. 62*6236dae4SAndroid Build Coastguard Worker 63*6236dae4SAndroid Build Coastguard Worker127.0.0.1 FALSE "/silly/" FALSE 0 mismatch this 64*6236dae4SAndroid Build Coastguard Worker127.0.0.1 FALSE /we/want/ FALSE 0 foobar name 65*6236dae4SAndroid Build Coastguard Worker</file> 66*6236dae4SAndroid Build Coastguard Worker</verify> 67*6236dae4SAndroid Build Coastguard Worker</testcase> 68