2
0

test1339 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. # this relies on the debug feature to allow us to set directory to store the
  25. # -O and -J output in, using the CURL_TESTDIR variable
  26. <features>
  27. debug
  28. </features>
  29. <server>
  30. http
  31. </server>
  32. <name>
  33. HTTP GET with -O -J without Content-Disposition, -D stdout
  34. </name>
  35. <setenv>
  36. CURL_TESTDIR=%LOGDIR
  37. </setenv>
  38. <command option="no-output,no-include">
  39. http://%HOSTIP:%HTTPPORT/%TESTNUMBER -J -O -D -
  40. </command>
  41. </client>
  42. #
  43. # Verify data after the test has been "shot"
  44. <verify>
  45. <protocol>
  46. GET /%TESTNUMBER HTTP/1.1
  47. Host: %HOSTIP:%HTTPPORT
  48. User-Agent: curl/%VERSION
  49. Accept: */*
  50. </protocol>
  51. <file1 name="%LOGDIR/%TESTNUMBER">
  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>