test301 766 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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: Tue, 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/%TESTNUMBER
  34. </command>
  35. </client>
  36. #
  37. # Verify data after the test has been "shot"
  38. <verify>
  39. <protocol>
  40. GET /%TESTNUMBER HTTP/1.1
  41. Host: %HOSTIP:%HTTPSPORT
  42. Authorization: Basic ZmFrZTp1c2Vy
  43. User-Agent: curl/%VERSION
  44. Accept: */*
  45. </protocol>
  46. <data>
  47. [insert full protocol verifiction dump here]
  48. </data>
  49. </verify>
  50. </testcase>