test391 974 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. --path-as-is
  7. </keywords>
  8. </info>
  9. #
  10. # Server-side
  11. <reply>
  12. <data>
  13. HTTP/1.1 301 OK
  14. Content-Length: 6
  15. Content-Type: text/html
  16. Location: ../%TESTNUMBER0002
  17. -foo-
  18. </data>
  19. <data2>
  20. HTTP/1.1 200 OK
  21. Content-Length: 6
  22. Content-Type: text/html
  23. -muu-
  24. </data2>
  25. <datacheck>
  26. HTTP/1.1 301 OK
  27. Content-Length: 6
  28. Content-Type: text/html
  29. Location: ../%TESTNUMBER0002
  30. HTTP/1.1 200 OK
  31. Content-Length: 6
  32. Content-Type: text/html
  33. -muu-
  34. </datacheck>
  35. </reply>
  36. #
  37. # Client-side
  38. <client>
  39. <server>
  40. http
  41. </server>
  42. <name>
  43. --path-as-is with redirect, keeping dotdots
  44. </name>
  45. <command>
  46. http://%HOSTIP:%HTTPPORT/../../%TESTNUMBER --path-as-is -L
  47. </command>
  48. </client>
  49. #
  50. # Verify data after the test has been "shot"
  51. <verify>
  52. <protocol>
  53. GET /../../%TESTNUMBER HTTP/1.1
  54. Host: %HOSTIP:%HTTPPORT
  55. User-Agent: curl/%VERSION
  56. Accept: */*
  57. GET /../%TESTNUMBER0002 HTTP/1.1
  58. Host: %HOSTIP:%HTTPPORT
  59. User-Agent: curl/%VERSION
  60. Accept: */*
  61. </protocol>
  62. </verify>
  63. </testcase>