2
0

test339 961 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. </keywords>
  7. </info>
  8. #
  9. # Server-side
  10. <reply>
  11. <data nocheck="yes">
  12. HTTP/1.1 200 funky chunky!
  13. Server: fakeit/0.9 fakeitbad/1.0
  14. Transfer-Encoding: chunked
  15. Trailer: chunky-trailer
  16. Connection: mooo
  17. ETag: W/"asdf"
  18. 40
  19. aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
  20. 30
  21. bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
  22. 21;heresatest=moooo
  23. cccccccccccccccccccccccccccccccc
  24. 0
  25. chunky-trailer: header data
  26. </data>
  27. </reply>
  28. #
  29. # Client-side
  30. <client>
  31. <server>
  32. http
  33. </server>
  34. <name>
  35. Check if --etag-save saved correct etag to a file
  36. </name>
  37. <command>
  38. http://%HOSTIP:%HTTPPORT/%TESTNUMBER --etag-save %LOGDIR/etag%TESTNUMBER
  39. </command>
  40. </client>
  41. #
  42. # Verify data after the test has been "shot"
  43. <verify>
  44. <protocol>
  45. GET /%TESTNUMBER HTTP/1.1
  46. Host: %HOSTIP:%HTTPPORT
  47. User-Agent: curl/%VERSION
  48. Accept: */*
  49. </protocol>
  50. <file name="%LOGDIR/etag%TESTNUMBER">
  51. W/"asdf"
  52. </file>
  53. </verify>
  54. </testcase>