test1335 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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 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 -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. 12345
  52. </file1>
  53. <file2 name="%LOGDIR/stdout%TESTNUMBER">
  54. HTTP/1.1 200 OK
  55. Date: Tue, 09 Nov 2010 14:49:00 GMT
  56. Server: test-server/fake
  57. Content-Length: 6
  58. Connection: close
  59. Content-Type: text/html
  60. </file2>
  61. </verify>
  62. </testcase>