test1942 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <testcase>
  2. <info>
  3. <keywords>
  4. curl_easy_header
  5. CONNECT
  6. </keywords>
  7. </info>
  8. # Server-side
  9. <reply>
  10. <data nocheck="yes">
  11. HTTP/1.1 100 continue
  12. Date: Thu, 09 Nov 2010 14:49:00 GMT
  13. Server: maybe different
  14. HTTP/1.1 200 OK
  15. Date: Thu, 09 Nov 2010 14:49:00 GMT
  16. Server: test with trailing space
  17. Content-Type: text/html
  18. Content-Length: 0
  19. Set-Cookie: onecookie=data;
  20. Set-Cookie: secondcookie=2data;
  21. Set-Cookie: cookie3=data3;
  22. Location: /%TESTNUMBER0002
  23. </data>
  24. </reply>
  25. # Client-side
  26. <client>
  27. <features>
  28. http
  29. headers-api
  30. </features>
  31. <server>
  32. http
  33. </server>
  34. <name>
  35. curl_easy_header with 1xx response
  36. </name>
  37. <tool>
  38. lib1940
  39. </tool>
  40. <command>
  41. http://%HOSTIP:%HTTPPORT/%TESTNUMBER
  42. </command>
  43. </client>
  44. # Verify data after the test has been "shot"
  45. <verify>
  46. <stdout>
  47. Date == Thu, 09 Nov 2010 14:49:00 GMT
  48. Server == test with trailing space
  49. Content-Type == text/html
  50. Content-Length == 0
  51. Location == /%TESTNUMBER0002
  52. - Set-Cookie == onecookie=data; (0/3)
  53. - Set-Cookie == secondcookie=2data; (1/3)
  54. - Set-Cookie == cookie3=data3; (2/3)
  55. Date == Thu, 09 Nov 2010 14:49:00 GMT
  56. Server == maybe different
  57. </stdout>
  58. </verify>
  59. </testcase>