test1377 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. Content-Disposition: filename=name%TESTNUMBER; charset=funny; option=strange
  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 -i and Content-Disposition, without -D
  29. </name>
  30. <command option="no-output,no-include">
  31. http://%HOSTIP:%HTTPPORT/%TESTNUMBER -i -o log/outfile%TESTNUMBER
  32. </command>
  33. <postcheck>
  34. perl %SRCDIR/libtest/notexists.pl log/%TESTNUMBER log/name%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="log/outfile%TESTNUMBER">
  47. HTTP/1.1 200 OK
  48. Date: Tue, 09 Nov 2010 14:49:00 GMT
  49. Server: test-server/fake
  50. Content-Length: 6
  51. Connection: close
  52. Content-Type: text/html
  53. Content-Disposition: filename=name%TESTNUMBER; charset=funny; option=strange
  54. 12345
  55. </file1>
  56. <file2 name="log/stdout%TESTNUMBER">
  57. </file2>
  58. </verify>
  59. </testcase>