test1065 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP PUT
  6. HTTP GET
  7. </keywords>
  8. </info>
  9. <reply>
  10. <data nocheck="yes">
  11. HTTP/1.1 200 A OK
  12. Server: curl test
  13. Content-Type: text/html; charset=iso-8859-1
  14. Content-Length: 3
  15. ok
  16. </data>
  17. <data2 nocheck="yes">
  18. HTTP/1.1 200 A OK
  19. Server: curl test
  20. Content-Type: text/html; charset=iso-8859-1
  21. Content-Length: 9
  22. still ok
  23. </data2>
  24. </reply>
  25. # Client-side
  26. <client>
  27. #
  28. <server>
  29. http
  30. </server>
  31. <name>
  32. HTTP PUT with one file but two URLs
  33. </name>
  34. <command>
  35. -H "Expect:" -T log/%TESTNUMBER http://%HOSTIP:%HTTPPORT/%TESTNUMBER.upload1 http://%HOSTIP:%HTTPPORT/%TESTNUMBER0002.url2
  36. </command>
  37. <file name="log/%TESTNUMBER">
  38. test
  39. </file>
  40. </client>
  41. # Verify data after the test has been "shot"
  42. <verify>
  43. <protocol>
  44. PUT /%TESTNUMBER.upload1 HTTP/1.1
  45. Host: %HOSTIP:%HTTPPORT
  46. User-Agent: curl/%VERSION
  47. Accept: */*
  48. Content-Length: 5
  49. test
  50. GET /%TESTNUMBER0002.url2 HTTP/1.1
  51. Host: %HOSTIP:%HTTPPORT
  52. User-Agent: curl/%VERSION
  53. Accept: */*
  54. </protocol>
  55. <stdout>
  56. HTTP/1.1 200 A OK
  57. Server: curl test
  58. Content-Type: text/html; charset=iso-8859-1
  59. Content-Length: 3
  60. ok
  61. HTTP/1.1 200 A OK
  62. Server: curl test
  63. Content-Type: text/html; charset=iso-8859-1
  64. Content-Length: 9
  65. still ok
  66. </stdout>
  67. </verify>
  68. </testcase>