test675 921 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. HTTP Basic auth
  7. </keywords>
  8. </info>
  9. # Server-side
  10. <reply>
  11. <data>
  12. HTTP/1.1 200 OK swsclose
  13. Date: Thu, 09 Nov 2010 14:49:00 GMT
  14. Content-Type: text/html
  15. Content-Length: 26
  16. the content would go here
  17. </data>
  18. </reply>
  19. # Client-side
  20. <client>
  21. <server>
  22. http
  23. </server>
  24. <name>
  25. HTTP connection re-use and different credentials
  26. </name>
  27. <command>
  28. http://user1:foo1@%HOSTIP:%HTTPPORT/user1/%TESTNUMBER http://user2:foo2@%HOSTIP:%HTTPPORT/user2/%TESTNUMBER
  29. </command>
  30. <features>
  31. proxy
  32. </features>
  33. </client>
  34. # Verify data after the test has been "shot"
  35. <verify>
  36. <protocol>
  37. GET /user1/%TESTNUMBER HTTP/1.1
  38. Host: %HOSTIP:%HTTPPORT
  39. Authorization: Basic dXNlcjE6Zm9vMQ==
  40. User-Agent: curl/%VERSION
  41. Accept: */*
  42. GET /user2/%TESTNUMBER HTTP/1.1
  43. Host: %HOSTIP:%HTTPPORT
  44. Authorization: Basic dXNlcjI6Zm9vMg==
  45. User-Agent: curl/%VERSION
  46. Accept: */*
  47. </protocol>
  48. </verify>
  49. </testcase>