test331 978 B

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