1<testcase> 2<info> 3<keywords> 4HTTP 5variables 6</keywords> 7</info> 8 9# 10# Server-side 11<reply> 12<data crlf="yes"> 13HTTP/1.1 200 OK 14Date: Tue, 09 Nov 2010 14:49:00 GMT 15Server: test-server/fake 16Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT 17ETag: "21025-dc7-39462498" 18Accept-Ranges: bytes 19Content-Length: 6 20Connection: close 21Content-Type: text/html 22Funny-head: yesyes 23 24-foo- 25</data> 26</reply> 27 28# 29# Client-side 30<client> 31<server> 32http 33</server> 34<setenv> 35FUNVALUE=contents 36VALUE2=curl 37BLANK= 38</setenv> 39<name> 40Expand environment variables within config file 41</name> 42<file name="%LOGDIR/cmd"> 43--variable %FUNVALUE 44--variable %VALUE2 45--variable %BLANK 46--variable %curl_NOT_SET=default 47--expand-data 1{{FUNVALUE}}2{{VALUE2}}3{{curl_NOT_SET}}4{{BLANK}}5\{{verbatim}}6{{not.good}}7{{}} 48</file> 49<command> 50http://%HOSTIP:%HTTPPORT/%TESTNUMBER -K %LOGDIR/cmd 51</command> 52</client> 53 54# 55# Verify data after the test has been "shot" 56<verify> 57<protocol crlf="yes" nonewline="yes"> 58POST /%TESTNUMBER HTTP/1.1 59Host: %HOSTIP:%HTTPPORT 60User-Agent: curl/%VERSION 61Accept: */* 62Content-Length: 54 63Content-Type: application/x-www-form-urlencoded 64 651contents2curl3default45{{verbatim}}6{{not.good}}7{{}} 66</protocol> 67</verify> 68</testcase> 69