test52 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. #
  2. # Server-side
  3. <reply>
  4. <data>
  5. HTTP/1.1 302 OK swsclose
  6. Location: ./520002
  7. Date: Thu, 09 Nov 2010 14:49:00 GMT
  8. Connection: close
  9. </data>
  10. <data2>
  11. HTTP/1.1 200 OK swsclose
  12. Location: this should be ignored
  13. Date: Thu, 09 Nov 2010 14:49:00 GMT
  14. Connection: close
  15. body
  16. </data2>
  17. <datacheck>
  18. HTTP/1.1 302 OK swsclose
  19. Location: ./520002
  20. Date: Thu, 09 Nov 2010 14:49:00 GMT
  21. Connection: close
  22. HTTP/1.1 200 OK swsclose
  23. Location: this should be ignored
  24. Date: Thu, 09 Nov 2010 14:49:00 GMT
  25. Connection: close
  26. body
  27. </datacheck>
  28. </reply>
  29. #
  30. # Client-side
  31. <client>
  32. <server>
  33. http
  34. </server>
  35. <name>
  36. HTTP follow redirect with ./-prefix
  37. </name>
  38. <command>
  39. http://%HOSTIP:%HOSTPORT/we/are/all/twits/52 -L
  40. </command>
  41. </client>
  42. #
  43. # Verify data after the test has been "shot"
  44. <verify>
  45. <strip>
  46. ^User-Agent:.*
  47. </strip>
  48. <protocol>
  49. GET /we/are/all/twits/52 HTTP/1.1
  50. Host: 127.0.0.1:8999
  51. Pragma: no-cache
  52. Accept: */*
  53. GET /we/are/all/twits/520002 HTTP/1.1
  54. User-Agent: curl/7.10 (i686-pc-linux-gnu) libcurl/7.10 OpenSSL/0.9.6c ipv6 zlib/1.1.3
  55. Host: 127.0.0.1:8999
  56. Pragma: no-cache
  57. Accept: */*
  58. </protocol>
  59. </verify>