test179 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. Server: Microsoft-IIS/4.0
  15. Date: Tue, 25 Sep 2001 19:37:44 GMT
  16. Content-Type: text/html
  17. Connection: close
  18. Content-Length: 21
  19. This server says moo
  20. </data>
  21. </reply>
  22. # Client-side
  23. <client>
  24. <server>
  25. http
  26. </server>
  27. <name>
  28. HTTP using proxy and cookies with path checks
  29. </name>
  30. <command>
  31. http://supertrooper.fake/c/%TESTNUMBER -b %LOGDIR/injar%TESTNUMBER -x %HOSTIP:%HTTPPORT
  32. </command>
  33. <file name="%LOGDIR/injar%TESTNUMBER">
  34. supertrooper.fake FALSE /a FALSE 22139150993 mooo indeed
  35. supertrooper.fake FALSE /b FALSE 0 moo1 indeed
  36. supertrooper.fake FALSE /c FALSE 22139150993 moo2 indeed
  37. </file>
  38. <features>
  39. cookies
  40. proxy
  41. </features>
  42. </client>
  43. # Verify data after the test has been "shot"
  44. <verify>
  45. <protocol>
  46. GET http://supertrooper.fake/c/%TESTNUMBER HTTP/1.1
  47. Host: supertrooper.fake
  48. User-Agent: curl/%VERSION
  49. Accept: */*
  50. Proxy-Connection: Keep-Alive
  51. Cookie: moo2=indeed
  52. </protocol>
  53. </verify>
  54. </testcase>