2
0

test55 951 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. followlocation
  7. </keywords>
  8. </info>
  9. <reply>
  10. <data>
  11. HTTP/1.1 302 OK swsclose
  12. Location: %TESTNUMBER0002
  13. Date: Tue, 09 Nov 2010 14:50:00 GMT
  14. Connection: close
  15. </data>
  16. <data2>
  17. HTTP/1.1 200 OK swsclose
  18. Date: Tue, 09 Nov 2010 14:50:00 GMT
  19. Connection: close
  20. body
  21. </data2>
  22. <datacheck>
  23. HTTP/1.1 302 OK swsclose
  24. Location: %TESTNUMBER0002
  25. Date: Tue, 09 Nov 2010 14:50:00 GMT
  26. Connection: close
  27. HTTP/1.1 200 OK swsclose
  28. Date: Tue, 09 Nov 2010 14:50:00 GMT
  29. Connection: close
  30. body
  31. </datacheck>
  32. </reply>
  33. <client>
  34. <server>
  35. http
  36. </server>
  37. <name>
  38. HTTP follow redirect with single slash in path
  39. </name>
  40. <command>
  41. http://%HOSTIP:%HTTPPORT/%TESTNUMBER -L
  42. </command>
  43. </client>
  44. <verify>
  45. <protocol>
  46. GET /%TESTNUMBER HTTP/1.1
  47. Host: %HOSTIP:%HTTPPORT
  48. User-Agent: curl/%VERSION
  49. Accept: */*
  50. GET /%TESTNUMBER0002 HTTP/1.1
  51. Host: %HOSTIP:%HTTPPORT
  52. User-Agent: curl/%VERSION
  53. Accept: */*
  54. </protocol>
  55. </verify>
  56. </testcase>