test331 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. HTTP proxy
  7. cookies
  8. </keywords>
  9. </info>
  10. # Server-side
  11. <reply>
  12. <data>
  13. HTTP/1.1 200 OK
  14. Date: Tue, 09 Nov 2010 14:49:00 GMT
  15. Server: test-server/fake
  16. Content-Type: text/html
  17. Content-Length: 4
  18. Set-Cookie: moo=yes;
  19. hej
  20. </data>
  21. <data2>
  22. HTTP/1.1 200 OK
  23. Date: Tue, 09 Nov 2010 14:49:00 GMT
  24. Server: test-server/fake
  25. Content-Type: text/html
  26. Content-Length: 0
  27. Funny-head: yesyes swsclose
  28. </data2>
  29. </reply>
  30. # Client-side
  31. <client>
  32. <server>
  33. http
  34. </server>
  35. <name>
  36. HTTP with cookie using host name 'moo'
  37. </name>
  38. <command>
  39. -x http://%HOSTIP:%HTTPPORT http://moo/we/want/%TESTNUMBER -b none http://moo/we/want/%TESTNUMBER0002
  40. </command>
  41. <features>
  42. cookies
  43. proxy
  44. </features>
  45. </client>
  46. # Verify data after the test has been "shot"
  47. <verify>
  48. <protocol>
  49. GET http://moo/we/want/%TESTNUMBER HTTP/1.1
  50. Host: moo
  51. User-Agent: curl/%VERSION
  52. Accept: */*
  53. Proxy-Connection: Keep-Alive
  54. GET http://moo/we/want/%TESTNUMBER0002 HTTP/1.1
  55. Host: moo
  56. User-Agent: curl/%VERSION
  57. Accept: */*
  58. Proxy-Connection: Keep-Alive
  59. Cookie: moo=yes
  60. </protocol>
  61. </verify>
  62. </testcase>