test1910 966 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP Basic
  6. CURLOPT_FOLLOWLOCATION
  7. </keywords>
  8. </info>
  9. # Server-side
  10. <reply>
  11. <data nocheck="yes">
  12. HTTP/1.1 302 OK
  13. Date: Tue, 09 Nov 2010 14:49:00 GMT
  14. Server: test-server/fake
  15. Content-Type: text/html
  16. Content-Length: 0
  17. Location: /%TESTNUMBER0002
  18. </data>
  19. <data2>
  20. HTTP/1.1 200 OK
  21. Date: Tue, 09 Nov 2010 14:49:00 GMT
  22. Server: test-server/fake
  23. Content-Type: text/html
  24. Content-Length: 4
  25. hej
  26. </data2>
  27. </reply>
  28. # Client-side
  29. <client>
  30. <server>
  31. http
  32. </server>
  33. <name>
  34. HTTP credentials with newline and redirect
  35. </name>
  36. <tool>
  37. lib%TESTNUMBER
  38. </tool>
  39. <command>
  40. %HOSTIP:%HTTPPORT/%TESTNUMBER
  41. </command>
  42. </client>
  43. # Verify data after the test has been "shot"
  44. <verify>
  45. <protocol>
  46. GET /%TESTNUMBER HTTP/1.1
  47. Host: %HOSTIP:%HTTPPORT
  48. Authorization: Basic dXNlcgpuYW1lOnBhc3MKd29yZA==
  49. Accept: */*
  50. GET /%TESTNUMBER0002 HTTP/1.1
  51. Host: %HOSTIP:%HTTPPORT
  52. Authorization: Basic dXNlcgpuYW1lOnBhc3MKd29yZA==
  53. Accept: */*
  54. </protocol>
  55. </verify>
  56. </testcase>