test1944 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <testcase>
  2. <info>
  3. <keywords>
  4. curl_easy_header
  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. </data>
  29. </reply>
  30. # Client-side
  31. <client>
  32. <features>
  33. headers-api
  34. </features>
  35. <server>
  36. http
  37. </server>
  38. <name>
  39. curl_easy_header with redirect
  40. </name>
  41. <tool>
  42. lib1940
  43. </tool>
  44. <command>
  45. http://%HOSTIP:%HTTPPORT/%TESTNUMBER
  46. </command>
  47. </client>
  48. # Verify data after the test has been "shot"
  49. <verify>
  50. <stdout>
  51. Date == Thu, 09 Nov 2010 14:49:00 GMT
  52. Server == the other one
  53. Content-Type == text/html
  54. Content-Length == 0
  55. - Set-Cookie == 1cookie=data1; (0/2)
  56. - Set-Cookie == 2cookie=data2; (1/2)
  57. </stdout>
  58. </verify>
  59. </testcase>