test25 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. # Server-side
  2. <reply>
  3. <data>
  4. HTTP/1.1 301 This is a weirdo text message
  5. Server: test-server/fake
  6. Location: data/reply/25
  7. Content-Length: 32
  8. Connection: close
  9. Redirect to the same URL again!
  10. </data>
  11. <datacheck>
  12. HTTP/1.1 301 This is a weirdo text message
  13. Server: test-server/fake
  14. Location: data/reply/25
  15. Content-Length: 32
  16. Connection: close
  17. HTTP/1.1 301 This is a weirdo text message
  18. Server: test-server/fake
  19. Location: data/reply/25
  20. Content-Length: 32
  21. Connection: close
  22. HTTP/1.1 301 This is a weirdo text message
  23. Server: test-server/fake
  24. Location: data/reply/25
  25. Content-Length: 32
  26. Connection: close
  27. HTTP/1.1 301 This is a weirdo text message
  28. Server: test-server/fake
  29. Location: data/reply/25
  30. Content-Length: 32
  31. Connection: close
  32. HTTP/1.1 301 This is a weirdo text message
  33. Server: test-server/fake
  34. Location: data/reply/25
  35. Content-Length: 32
  36. Connection: close
  37. HTTP/1.1 301 This is a weirdo text message
  38. Server: test-server/fake
  39. Location: data/reply/25
  40. Content-Length: 32
  41. Connection: close
  42. </datacheck>
  43. </reply>
  44. # Client-side
  45. <client>
  46. <server>
  47. http
  48. </server>
  49. <name>
  50. looping HTTP Location: following with --max-redirs, no persistance
  51. </name>
  52. <command>
  53. http://%HOSTIP:%HOSTPORT/want/25 -L --max-redirs 5
  54. </command>
  55. </test>
  56. # Verify data after the test has been "shot"
  57. <verify>
  58. <strip>
  59. ^User-Agent: curl/.*
  60. </strip>
  61. <protocol>
  62. GET /want/25 HTTP/1.1
  63. User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)
  64. Host: 127.0.0.1:8999
  65. Pragma: no-cache
  66. Accept: */*
  67. GET /want/data/reply/25 HTTP/1.1
  68. User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)
  69. Host: 127.0.0.1:8999
  70. Pragma: no-cache
  71. Accept: */*
  72. GET /want/data/reply/data/reply/25 HTTP/1.1
  73. User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)
  74. Host: 127.0.0.1:8999
  75. Pragma: no-cache
  76. Accept: */*
  77. GET /want/data/reply/data/reply/data/reply/25 HTTP/1.1
  78. User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)
  79. Host: 127.0.0.1:8999
  80. Pragma: no-cache
  81. Accept: */*
  82. GET /want/data/reply/data/reply/data/reply/data/reply/25 HTTP/1.1
  83. User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)
  84. Host: 127.0.0.1:8999
  85. Pragma: no-cache
  86. Accept: */*
  87. GET /want/data/reply/data/reply/data/reply/data/reply/data/reply/25 HTTP/1.1
  88. User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)
  89. Host: 127.0.0.1:8999
  90. Pragma: no-cache
  91. Accept: */*
  92. </protocol>
  93. <errorcode>
  94. 47
  95. </errorcode>
  96. </verify>