test740 (1001B)
1 <testcase> 2 <info> 3 <keywords> 4 IPFS 5 </keywords> 6 </info> 7 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 Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT 16 ETag: "21025-dc7-39462498" 17 Accept-Ranges: bytes 18 Content-Length: 21 19 Connection: close 20 Content-Type: text/plain 21 Funny-head: yesyes 22 23 Hello curl from IPFS 24 </data> 25 </reply> 26 27 # 28 # Client-side 29 <client> 30 <features> 31 ipfs 32 </features> 33 <server> 34 http 35 </server> 36 <setenv> 37 HOME=%PWD/%LOGDIR 38 </setenv> 39 <name> 40 IPFS with gateway URL from multiline gateway file 41 </name> 42 <command> 43 ipfs://bafybeidecnvkrygux6uoukouzps5ofkeevoqland7kopseiod6pzqvjg7u 44 </command> 45 <file name="%LOGDIR/.ipfs/gateway" > 46 http://%HOSTIP:%HTTPPORT 47 foo 48 bar 49 </file> 50 </client> 51 52 # 53 # Verify data after the test has been "shot" 54 <verify> 55 <protocol crlf="yes"> 56 GET /ipfs/bafybeidecnvkrygux6uoukouzps5ofkeevoqland7kopseiod6pzqvjg7u HTTP/1.1 57 Host: %HOSTIP:%HTTPPORT 58 User-Agent: curl/%VERSION 59 Accept: */* 60 61 </protocol> 62 </verify> 63 </testcase>