test1947 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <testcase>
  2. <info>
  3. <keywords>
  4. curl_easy_nextheader
  5. </keywords>
  6. </info>
  7. # Server-side
  8. <reply>
  9. <data nocheck="yes">
  10. HTTP/1.1 302 OK
  11. Date: Thu, 01 Nov 2001 14:49:00 GMT
  12. Server: test with trailing space
  13. Content-Type: text/html
  14. Content-Length: 0
  15. Set-Cookie: onecookie=data;
  16. Set-Cookie: secondcookie=2data;
  17. Set-Cookie: cookie3=data3;
  18. Location: /%TESTNUMBER0002
  19. </data>
  20. <data2 nocheck="yes">
  21. HTTP/1.1 200 OK
  22. Date: Thu, 09 Nov 2010 14:49:00 GMT
  23. Server: the other one
  24. Content-Type: text/html
  25. Content-Length: 0
  26. Set-Cookie: 1cookie=data1;
  27. Set-Cookie: 2cookie=data2;
  28. </data2>
  29. <data3 nocheck="yes">
  30. HTTP/1.1 200 OK
  31. Date: Thu, 09 Nov 2010 14:49:00 GMT
  32. Server: the other one
  33. Content-Type: text/html
  34. Content-Length: 0
  35. </data3>
  36. </reply>
  37. # Client-side
  38. <client>
  39. <features>
  40. headers-api
  41. </features>
  42. <server>
  43. http
  44. </server>
  45. <name>
  46. curl_easy_nextheader on second request after first did redirects
  47. </name>
  48. <tool>
  49. lib%TESTNUMBER
  50. </tool>
  51. <command>
  52. http://%HOSTIP:%HTTPPORT/%TESTNUMBER http://%HOSTIP:%HTTPPORT/%TESTNUMBER0003
  53. </command>
  54. </client>
  55. # Verify data after the test has been "shot"
  56. <verify>
  57. <stdout>
  58. count = 2
  59. count = 1
  60. </stdout>
  61. </verify>
  62. </testcase>