test1134 955 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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: Thu, 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: Thu, 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 re-use with different credentials
  36. </name>
  37. <command>
  38. http://%HOSTIP:%HTTPPORT/1134 -u user1:password1 --next http://%HOSTIP:%HTTPPORT/11340001 -u 2user:password2
  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 /1134 HTTP/1.1
  49. Host: %HOSTIP:%HTTPPORT
  50. Authorization: Basic dXNlcjE6cGFzc3dvcmQx
  51. Accept: */*
  52. GET /11340001 HTTP/1.1
  53. Host: %HOSTIP:%HTTPPORT
  54. Authorization: Basic MnVzZXI6cGFzc3dvcmQy
  55. Accept: */*
  56. [DISCONNECT]
  57. </protocol>
  58. </verify>
  59. </testcase>