test1373 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. </keywords>
  7. </info>
  8. #
  9. <reply>
  10. <data nocheck="yes">
  11. HTTP/1.1 200 OK
  12. Date: Tue, 09 Nov 2010 14:49:00 GMT
  13. Server: test-server/fake
  14. Content-Length: 6
  15. Connection: close
  16. Content-Type: text/html
  17. 12345
  18. </data>
  19. </reply>
  20. #
  21. # Client-side
  22. <client>
  23. <server>
  24. http
  25. </server>
  26. <name>
  27. HTTP GET -o fname -i without Content-Disposition, -D stdout
  28. </name>
  29. <command option="no-output,no-include">
  30. http://%HOSTIP:%HTTPPORT/%TESTNUMBER -i -o %LOGDIR/outfile%TESTNUMBER -D -
  31. </command>
  32. <postcheck>
  33. perl %SRCDIR/libtest/notexists.pl %LOGDIR/%TESTNUMBER
  34. </postcheck>
  35. </client>
  36. #
  37. # Verify data after the test has been "shot"
  38. <verify>
  39. <protocol>
  40. GET /%TESTNUMBER HTTP/1.1
  41. Host: %HOSTIP:%HTTPPORT
  42. User-Agent: curl/%VERSION
  43. Accept: */*
  44. </protocol>
  45. <file1 name="%LOGDIR/outfile%TESTNUMBER">
  46. HTTP/1.1 200 OK
  47. Date: Tue, 09 Nov 2010 14:49:00 GMT
  48. Server: test-server/fake
  49. Content-Length: 6
  50. Connection: close
  51. Content-Type: text/html
  52. 12345
  53. </file1>
  54. <file2 name="%LOGDIR/stdout%TESTNUMBER">
  55. HTTP/1.1 200 OK
  56. Date: Tue, 09 Nov 2010 14:49:00 GMT
  57. Server: test-server/fake
  58. Content-Length: 6
  59. Connection: close
  60. Content-Type: text/html
  61. </file2>
  62. </verify>
  63. </testcase>