test1368 1.1 KB

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