test1941 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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 200 OK
  12. Date: Thu, 09 Nov 2010 14:49:00 GMT
  13. Server: test with trailing space
  14. Content-Type: text/html
  15. Content-Length: 0
  16. Set-Cookie: onecookie=data;
  17. Set-Cookie: secondcookie=2data;
  18. Set-Cookie: cookie3=data3;
  19. Location: /%TESTNUMBER0002
  20. </data>
  21. <connect>
  22. HTTP/1.1 200 Sure go ahead
  23. Server: from the connect
  24. Silly-thing: yes yes
  25. </connect>
  26. </reply>
  27. # Client-side
  28. <client>
  29. <features>
  30. proxy
  31. SSL
  32. headers-api
  33. </features>
  34. <server>
  35. http
  36. http-proxy
  37. </server>
  38. <name>
  39. curl_easy_header with CONNECT
  40. </name>
  41. <tool>
  42. lib1940
  43. </tool>
  44. <command>
  45. http://hello:%HTTPPORT/%TESTNUMBER %HOSTIP:%PROXYPORT
  46. </command>
  47. </client>
  48. # Verify data after the test has been "shot"
  49. <verify>
  50. <proxy>
  51. CONNECT hello:%HTTPPORT HTTP/1.1
  52. Host: hello:%HTTPPORT
  53. Proxy-Connection: Keep-Alive
  54. </proxy>
  55. <stdout>
  56. Date == Thu, 09 Nov 2010 14:49:00 GMT
  57. Server == test with trailing space
  58. Content-Type == text/html
  59. Content-Length == 0
  60. Location == /%TESTNUMBER0002
  61. - Set-Cookie == onecookie=data; (0/3)
  62. - Set-Cookie == secondcookie=2data; (1/3)
  63. - Set-Cookie == cookie3=data3; (2/3)
  64. Server == from the connect
  65. Silly-thing == yes yes
  66. </stdout>
  67. </verify>
  68. </testcase>