test52 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. followlocation
  7. </keywords>
  8. </info>
  9. #
  10. # Server-side
  11. <reply>
  12. <data>
  13. HTTP/1.1 302 OK swsclose
  14. Location: ./%TESTNUMBER0002
  15. Date: Tue, 09 Nov 2010 14:49:00 GMT
  16. Connection: close
  17. </data>
  18. <data2>
  19. HTTP/1.1 200 OK swsclose
  20. Location: this should be ignored
  21. Date: Tue, 09 Nov 2010 14:49:00 GMT
  22. Connection: close
  23. body
  24. </data2>
  25. <datacheck>
  26. HTTP/1.1 302 OK swsclose
  27. Location: ./%TESTNUMBER0002
  28. Date: Tue, 09 Nov 2010 14:49:00 GMT
  29. Connection: close
  30. HTTP/1.1 200 OK swsclose
  31. Location: this should be ignored
  32. Date: Tue, 09 Nov 2010 14:49:00 GMT
  33. Connection: close
  34. body
  35. </datacheck>
  36. </reply>
  37. #
  38. # Client-side
  39. <client>
  40. <server>
  41. http
  42. </server>
  43. <name>
  44. HTTP follow redirect with ./-prefix
  45. </name>
  46. <command>
  47. http://%HOSTIP:%HTTPPORT/we/are/all/twits/%TESTNUMBER -L
  48. </command>
  49. </client>
  50. #
  51. # Verify data after the test has been "shot"
  52. <verify>
  53. <protocol>
  54. GET /we/are/all/twits/%TESTNUMBER HTTP/1.1
  55. Host: %HOSTIP:%HTTPPORT
  56. User-Agent: curl/%VERSION
  57. Accept: */*
  58. GET /we/are/all/twits/%TESTNUMBER0002 HTTP/1.1
  59. Host: %HOSTIP:%HTTPPORT
  60. User-Agent: curl/%VERSION
  61. Accept: */*
  62. </protocol>
  63. </verify>
  64. </testcase>