test2056 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. HTTP Negotiate auth (stub krb5)
  7. </keywords>
  8. </info>
  9. # Server-side
  10. <reply>
  11. <!-- First request, expect success in one shot -->
  12. <data1>
  13. HTTP/1.1 200 Things are fine in server land
  14. Server: Microsoft-IIS/7.0
  15. Content-Type: text/html; charset=iso-8859-1
  16. WWW-Authenticate: Negotiate RA==
  17. Content-Length: 15
  18. Nice auth sir!
  19. </data1>
  20. <datacheck>
  21. HTTP/1.1 200 Things are fine in server land
  22. Server: Microsoft-IIS/7.0
  23. Content-Type: text/html; charset=iso-8859-1
  24. WWW-Authenticate: Negotiate RA==
  25. Content-Length: 15
  26. Nice auth sir!
  27. </datacheck>
  28. </reply>
  29. # Client-side
  30. <client>
  31. <server>
  32. http
  33. </server>
  34. <name>
  35. HTTP Negotiate authentication (stub krb5)
  36. </name>
  37. <features>
  38. GSS-API
  39. ld_preload
  40. !debug
  41. </features>
  42. <setenv>
  43. LD_PRELOAD=%PWD/libtest/.libs/libstubgss.so
  44. CURL_STUB_GSS_CREDS="KRB5_Alice"
  45. </setenv>
  46. <command>
  47. --negotiate http://%HOSTIP:%HTTPPORT/%TESTNUMBER
  48. </command>
  49. </client>
  50. # Verify data after the test has been "shot"
  51. <verify>
  52. <protocol>
  53. GET /%TESTNUMBER HTTP/1.1
  54. Host: %HOSTIP:%HTTPPORT
  55. Authorization: Negotiate IktSQjVfQWxpY2UiOkhUVFBAMTI3LjAuMC4xOjE6QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQQ==
  56. User-Agent: curl/%VERSION
  57. Accept: */*
  58. </protocol>
  59. </verify>
  60. </testcase>