test74 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. globbing
  7. {} list
  8. </keywords>
  9. </info>
  10. #
  11. # Server-side
  12. <reply>
  13. <data nocheck="yes">
  14. HTTP/1.1 200 OK
  15. Date: Tue, 09 Nov 2010 14:49:00 GMT
  16. Server: test-server/fake
  17. Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
  18. ETag: "21025-dc7-39462498"
  19. Accept-Ranges: bytes
  20. Content-Length: 6
  21. Content-Type: text/html
  22. Funny-head: yesyes
  23. -foo-
  24. </data>
  25. <data1>
  26. HTTP/1.0 200 OK
  27. Content-Type: text/html
  28. Funny-head: swsclose
  29. Connection: close
  30. crap data
  31. </data1>
  32. </reply>
  33. #
  34. # Client-side
  35. <client>
  36. <server>
  37. http
  38. </server>
  39. <name>
  40. HTTP, urlglob {}-retrieval and -o #[num] usage
  41. </name>
  42. <command option="no-output">
  43. "http://%HOSTIP:%HTTPPORT/{%TESTNUMBER,%TESTNUMBER0001}" -o "%LOGDIR/dumpit#1.dump"
  44. </command>
  45. </client>
  46. #
  47. # Verify data after the test has been "shot"
  48. <verify>
  49. <protocol>
  50. GET /%TESTNUMBER HTTP/1.1
  51. Host: %HOSTIP:%HTTPPORT
  52. User-Agent: curl/%VERSION
  53. Accept: */*
  54. GET /%TESTNUMBER0001 HTTP/1.1
  55. Host: %HOSTIP:%HTTPPORT
  56. User-Agent: curl/%VERSION
  57. Accept: */*
  58. </protocol>
  59. <file name="%LOGDIR/dumpit%TESTNUMBER0001.dump">
  60. HTTP/1.0 200 OK
  61. Content-Type: text/html
  62. Funny-head: swsclose
  63. Connection: close
  64. crap data
  65. </file>
  66. </verify>
  67. </testcase>