test899 1021 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. Basic
  7. </keywords>
  8. </info>
  9. #
  10. # Server-side
  11. <reply>
  12. <data crlf="yes" nocheck="yes">
  13. HTTP/1.1 302 go go go
  14. Content-Length: 8
  15. Location: http://user:pass@%HOSTIP:%HTTPPORT/basic-auth/user/%TESTNUMBER0002
  16. Content-Type: text/html
  17. Funny-head: yesyes
  18. notreal
  19. </data>
  20. <data2 crlf="yes">
  21. HTTP/1.1 200 OK
  22. Content-Length: 6
  23. Content-Type: text/html
  24. Funny-head: yesyes
  25. final
  26. </data2>
  27. </reply>
  28. #
  29. # Client-side
  30. <client>
  31. <server>
  32. http
  33. </server>
  34. <name>
  35. URL with credentials redirects to URL with different credentials
  36. </name>
  37. <command>
  38. http://first:secret@%HOSTIP:%HTTPPORT/%TESTNUMBER -L
  39. </command>
  40. </client>
  41. #
  42. # Verify data after the test has been "shot"
  43. <verify>
  44. <protocol crlf="yes">
  45. GET /%TESTNUMBER HTTP/1.1
  46. Host: %HOSTIP:%HTTPPORT
  47. Authorization: Basic Zmlyc3Q6c2VjcmV0
  48. User-Agent: curl/%VERSION
  49. Accept: */*
  50. GET /basic-auth/user/%TESTNUMBER0002 HTTP/1.1
  51. Host: %HOSTIP:%HTTPPORT
  52. Authorization: Basic dXNlcjpwYXNz
  53. User-Agent: curl/%VERSION
  54. Accept: */*
  55. </protocol>
  56. </verify>
  57. </testcase>