| xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame] | 1 | <testcase> | 
 | 2 | <info> | 
 | 3 | <keywords> | 
 | 4 | CURLOPT_CURLU | 
 | 5 | CURLOPT_PORT | 
 | 6 | </keywords> | 
 | 7 | </info> | 
 | 8 |  | 
 | 9 | # Server-side | 
 | 10 | <reply> | 
 | 11 | <data nocheck="yes"> | 
 | 12 | HTTP/1.1 200 OK | 
 | 13 | Date: Tue, 09 Nov 2010 14:49:00 GMT | 
 | 14 | Server: test-server/fake | 
 | 15 | Content-Type: text/html | 
 | 16 | Funny-head: yesyes swsclose | 
 | 17 |  | 
 | 18 | </data> | 
 | 19 | </reply> | 
 | 20 |  | 
 | 21 | # Client-side | 
 | 22 | <client> | 
 | 23 | <server> | 
 | 24 | http | 
 | 25 | </server> | 
 | 26 |  <name> | 
 | 27 | CURLOPT_CURLU and CURLOPT_PORT | 
 | 28 |  </name> | 
 | 29 | <tool> | 
 | 30 | lib%TESTNUMBER | 
 | 31 | </tool> | 
 | 32 |  | 
 | 33 | # The tool does two requesets, the first sets CURLOPT_PORT to 1 | 
 | 34 | # the second resets the port again and expects that request to work. | 
 | 35 | <command> | 
 | 36 | http://%HOSTIP:%HTTPPORT/%TESTNUMBER | 
 | 37 | </command> | 
 | 38 | </client> | 
 | 39 |  | 
 | 40 | # Verify data after the test has been "shot" | 
 | 41 | <verify> | 
 | 42 | <protocol> | 
 | 43 | GET /%TESTNUMBER HTTP/1.1
 | 
 | 44 | Host: %HOSTIP:%HTTPPORT
 | 
 | 45 | Accept: */*
 | 
 | 46 | 
 | 
 | 47 | </protocol> | 
 | 48 | </verify> | 
 | 49 | </testcase> |