test74 1.1 KB

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