test1141 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. HTTP proxy
  7. followlocation
  8. </keywords>
  9. </info>
  10. # Server-side
  11. <reply>
  12. <data>
  13. HTTP/1.1 302 This is a weirdo text message
  14. Connection: close
  15. Location: http:///foo.example.com/want/11410001
  16. This server reply is for testing
  17. </data>
  18. <data1>
  19. HTTP/1.1 200 hello
  20. Connection: close
  21. Content-Length: 4
  22. hej
  23. </data1>
  24. <datacheck>
  25. HTTP/1.1 302 This is a weirdo text message
  26. Connection: close
  27. Location: http:///foo.example.com/want/11410001
  28. HTTP/1.1 200 hello
  29. Connection: close
  30. Content-Length: 4
  31. hej
  32. </datacheck>
  33. </reply>
  34. # Client-side
  35. <client>
  36. <server>
  37. http
  38. </server>
  39. <name>
  40. HTTP redirect to http:/// (three slashes!)
  41. </name>
  42. <command>
  43. %HOSTIP:%HTTPPORT/want/1141 -L -x http://%HOSTIP:%HTTPPORT
  44. </command>
  45. </client>
  46. # Verify data after the test has been "shot"
  47. <verify>
  48. <strip>
  49. ^User-Agent:.*
  50. </strip>
  51. <protocol>
  52. GET http://%HOSTIP:%HTTPPORT/want/1141 HTTP/1.1
  53. Host: %HOSTIP:%HTTPPORT
  54. Accept: */*
  55. Proxy-Connection: Keep-Alive
  56. GET http://foo.example.com/want/11410001 HTTP/1.1
  57. Host: foo.example.com
  58. Accept: */*
  59. Proxy-Connection: Keep-Alive
  60. </protocol>
  61. </verify>
  62. </testcase>