test1134 1001 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP HEAD
  6. -G
  7. </keywords>
  8. </info>
  9. #
  10. # Server-side
  11. <reply>
  12. <servercmd>
  13. connection-monitor
  14. </servercmd>
  15. <data>
  16. HTTP/1.1 200 OK
  17. Date: Tue, 09 Nov 2010 14:49:00 GMT
  18. Content-Length: 10
  19. contents1
  20. </data>
  21. <data1>
  22. HTTP/1.1 200 OK
  23. Date: Tue, 09 Nov 2010 14:49:00 GMT
  24. Content-Length: 10
  25. contents2
  26. </data1>
  27. </reply>
  28. #
  29. # Client-side
  30. <client>
  31. <server>
  32. http
  33. </server>
  34. <name>
  35. HTTP connection reuse with different credentials
  36. </name>
  37. <command>
  38. http://%HOSTIP:%HTTPPORT/%TESTNUMBER -u user1:password1 --next http://%HOSTIP:%HTTPPORT/%TESTNUMBER0001 -u 2user:password2
  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. Authorization: Basic dXNlcjE6cGFzc3dvcmQx
  48. User-Agent: curl/%VERSION
  49. Accept: */*
  50. GET /%TESTNUMBER0001 HTTP/1.1
  51. Host: %HOSTIP:%HTTPPORT
  52. Authorization: Basic MnVzZXI6cGFzc3dvcmQy
  53. User-Agent: curl/%VERSION
  54. Accept: */*
  55. [DISCONNECT]
  56. </protocol>
  57. </verify>
  58. </testcase>