test301 755 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTPS
  5. HTTP GET
  6. HTTP Basic auth
  7. </keywords>
  8. </info>
  9. #
  10. # Server-side
  11. <reply>
  12. <data>
  13. HTTP/1.1 200 OK swsclose
  14. Date: Thu, 09 Nov 2010 14:49:00 GMT
  15. Server: test-server/fake
  16. Content-Type: text/html
  17. Funny-head: yesyes
  18. </data>
  19. </reply>
  20. #
  21. # Client-side
  22. <client>
  23. <features>
  24. SSL
  25. </features>
  26. <server>
  27. https
  28. </server>
  29. <name>
  30. HTTPS GET with user and password
  31. </name>
  32. <command>
  33. -k -u fake:user https://%HOSTIP:%HTTPSPORT/301
  34. </command>
  35. </client>
  36. #
  37. # Verify data after the test has been "shot"
  38. <verify>
  39. <strip>
  40. ^User-Agent:.*
  41. </strip>
  42. <protocol>
  43. GET /301 HTTP/1.1
  44. Authorization: Basic ZmFrZTp1c2Vy
  45. Host: %HOSTIP:%HTTPSPORT
  46. Accept: */*
  47. </protocol>
  48. <data>
  49. [insert full protocol verifiction dump here]
  50. </data>
  51. </verify>
  52. </testcase>