test1343 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. # this relies on the debug feature to allow us to set directory to store the
  24. # -O output in, using the CURL_TESTDIR variable
  25. <features>
  26. debug
  27. </features>
  28. <server>
  29. http
  30. </server>
  31. <name>
  32. HTTP GET with -O -i without Content-Disposition, -D stdout
  33. </name>
  34. <setenv>
  35. CURL_TESTDIR=%LOGDIR
  36. </setenv>
  37. <command option="no-output,no-include">
  38. http://%HOSTIP:%HTTPPORT/%TESTNUMBER -i -O -D -
  39. </command>
  40. </client>
  41. #
  42. # Verify data after the test has been "shot"
  43. <verify>
  44. <protocol>
  45. GET /%TESTNUMBER HTTP/1.1
  46. Host: %HOSTIP:%HTTPPORT
  47. User-Agent: curl/%VERSION
  48. Accept: */*
  49. </protocol>
  50. <file1 name="%LOGDIR/%TESTNUMBER">
  51. HTTP/1.1 200 OK
  52. Date: Tue, 09 Nov 2010 14:49:00 GMT
  53. Server: test-server/fake
  54. Content-Length: 6
  55. Connection: close
  56. Content-Type: text/html
  57. 12345
  58. </file1>
  59. <file2 name="%LOGDIR/stdout%TESTNUMBER">
  60. HTTP/1.1 200 OK
  61. Date: Tue, 09 Nov 2010 14:49:00 GMT
  62. Server: test-server/fake
  63. Content-Length: 6
  64. Connection: close
  65. Content-Type: text/html
  66. </file2>
  67. </verify>
  68. </testcase>