test1334 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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: Thu, 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 without Content-Disposition, -D file
  33. </name>
  34. <setenv>
  35. CURL_TESTDIR=%PWD/log
  36. </setenv>
  37. <command option="no-output,no-include">
  38. http://%HOSTIP:%HTTPPORT/1334 -O -D log/heads1334
  39. </command>
  40. </client>
  41. #
  42. # Verify data after the test has been "shot"
  43. <verify>
  44. <strip>
  45. ^User-Agent:.*
  46. </strip>
  47. <protocol>
  48. GET /1334 HTTP/1.1
  49. Host: %HOSTIP:%HTTPPORT
  50. Accept: */*
  51. </protocol>
  52. <file1 name="log/1334">
  53. 12345
  54. </file1>
  55. <file2 name="log/heads1334">
  56. HTTP/1.1 200 OK
  57. Date: Thu, 09 Nov 2010 14:49:00 GMT
  58. Server: test-server/fake
  59. Content-Length: 6
  60. Connection: close
  61. Content-Type: text/html
  62. </file2>
  63. <file3 name="log/stdout1334">
  64. </file3>
  65. </verify>
  66. </testcase>