test331 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. proxy
  43. </features>
  44. </client>
  45. # Verify data after the test has been "shot"
  46. <verify>
  47. <protocol>
  48. GET http://moo/we/want/%TESTNUMBER HTTP/1.1
  49. Host: moo
  50. User-Agent: curl/%VERSION
  51. Accept: */*
  52. Proxy-Connection: Keep-Alive
  53. GET http://moo/we/want/%TESTNUMBER0002 HTTP/1.1
  54. Host: moo
  55. User-Agent: curl/%VERSION
  56. Accept: */*
  57. Proxy-Connection: Keep-Alive
  58. Cookie: moo=yes
  59. </protocol>
  60. </verify>
  61. </testcase>