test1460 919 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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 swsclose
  13. 12345
  14. fooo
  15. 54 3 2 1
  16. Content-Disposition: filename=name%TESTNUMBER; charset=funny; option=strange
  17. </data>
  18. </reply>
  19. #
  20. # Client-side
  21. <client>
  22. # this relies on the debug feature to allow us to set directory to store the
  23. # -J output in
  24. <features>
  25. debug
  26. </features>
  27. <server>
  28. http
  29. </server>
  30. <name>
  31. HTTP GET with -Ji and Content-Disposition with existing file
  32. </name>
  33. <setenv>
  34. CURL_TESTDIR=%PWD/log
  35. </setenv>
  36. <command option="no-output,no-include">
  37. http://%HOSTIP:%HTTPPORT/%TESTNUMBER -Ji -O
  38. </command>
  39. <file name="log/name%TESTNUMBER">
  40. initial content
  41. </file>
  42. </client>
  43. #
  44. # Verify data after the test has been "shot"
  45. <verify>
  46. # Warning: --include and --remote-header-name cannot be combined.
  47. <errorcode>
  48. 2
  49. </errorcode>
  50. <file name="log/name%TESTNUMBER">
  51. initial content
  52. </file>
  53. </verify>
  54. </testcase>