test43 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. # Server-side
  2. <reply>
  3. <data>
  4. HTTP/1.1 301 This is a weirdo text message
  5. Date: Thu, 09 Nov 2010 14:49:00 GMT
  6. Server: test-server/fake
  7. Location: data/430002.txt?coolsite=yes
  8. Connection: close
  9. This server reply is for testing a simple Location: following
  10. </data>
  11. <data2>
  12. HTTP/1.1 200 Followed here fine swsclose
  13. Date: Thu, 09 Nov 2010 14:49:00 GMT
  14. Server: test-server/fake
  15. If this is received, the location following worked
  16. </data2>
  17. <datacheck>
  18. HTTP/1.1 301 This is a weirdo text message
  19. Date: Thu, 09 Nov 2010 14:49:00 GMT
  20. Server: test-server/fake
  21. Location: data/430002.txt?coolsite=yes
  22. Connection: close
  23. HTTP/1.1 200 Followed here fine swsclose
  24. Date: Thu, 09 Nov 2010 14:49:00 GMT
  25. Server: test-server/fake
  26. If this is received, the location following worked
  27. </datacheck>
  28. </reply>
  29. # Client-side
  30. <client>
  31. <server>
  32. http
  33. </server>
  34. <name>
  35. HTTP Location: following over HTTP proxy
  36. </name>
  37. <command>
  38. http://%HOSTIP:%HOSTPORT/want/43 -L -x %HOSTIP:%HOSTPORT
  39. </command>
  40. </test>
  41. # Verify data after the test has been "shot"
  42. <verify>
  43. <strip>
  44. ^User-Agent:.*
  45. </strip>
  46. <protocol>
  47. GET http://127.0.0.1:8999/want/43 HTTP/1.1
  48. Host: 127.0.0.1:8999
  49. Pragma: no-cache
  50. Accept: */*
  51. GET http://127.0.0.1:8999/want/data/430002.txt?coolsite=yes HTTP/1.1
  52. Host: 127.0.0.1:8999
  53. Pragma: no-cache
  54. Accept: */*
  55. </protocol>
  56. </verify>