test1313 946 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. Content-Disposition: inline; filename='name%TESTNUMBER
  19. 12345
  20. </data>
  21. </reply>
  22. #
  23. # Client-side
  24. <client>
  25. # this relies on the debug feature to allow us to set directory to store the
  26. # -J output in
  27. <features>
  28. debug
  29. </features>
  30. <server>
  31. http
  32. </server>
  33. <name>
  34. HTTP GET with -J, Content-Disposition, uneven quotes
  35. </name>
  36. <setenv>
  37. CURL_TESTDIR=%LOGDIR
  38. </setenv>
  39. <command option="no-output,no-include">
  40. http://%HOSTIP:%HTTPPORT/%TESTNUMBER -J -O
  41. </command>
  42. </client>
  43. #
  44. # Verify data after the test has been "shot"
  45. <verify>
  46. <protocol>
  47. GET /%TESTNUMBER HTTP/1.1
  48. Host: %HOSTIP:%HTTPPORT
  49. User-Agent: curl/%VERSION
  50. Accept: */*
  51. </protocol>
  52. <file name="%LOGDIR/name%TESTNUMBER">
  53. 12345
  54. </file>
  55. </verify>
  56. </testcase>