test1343 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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 -i without Content-Disposition, -D stdout
  33. </name>
  34. <setenv>
  35. CURL_TESTDIR=%PWD/log
  36. </setenv>
  37. <command option="no-output,no-include">
  38. http://%HOSTIP:%HTTPPORT/1343 -i -O -D -
  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 /1343 HTTP/1.1
  49. Host: %HOSTIP:%HTTPPORT
  50. Accept: */*
  51. </protocol>
  52. <file1 name="log/1343" mode="text">
  53. HTTP/1.1 200 OK
  54. Date: Thu, 09 Nov 2010 14:49:00 GMT
  55. Server: test-server/fake
  56. Content-Length: 6
  57. Connection: close
  58. Content-Type: text/html
  59. 12345
  60. </file1>
  61. <file2 name="log/stdout1343" mode="text">
  62. HTTP/1.1 200 OK
  63. Date: Thu, 09 Nov 2010 14:49:00 GMT
  64. Server: test-server/fake
  65. Content-Length: 6
  66. Connection: close
  67. Content-Type: text/html
  68. </file2>
  69. </verify>
  70. </testcase>