2
0

test1519 927 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. </keywords>
  6. </info>
  7. #
  8. # This reproduces issue #3340
  9. #
  10. # Server-side
  11. <reply>
  12. <data nocheck="yes">
  13. HTTP/1.1 302 redirect to broken URL
  14. Date: Thu, 17 Mar 2016 14:41:00 GMT
  15. Server: test-server/fake
  16. Content-Type: text/plain; charset=US-ASCII
  17. X-Special: swsclose
  18. Location: h ttp://1.2.4.5/test
  19. Content-Length: 0
  20. Connection: close
  21. </data>
  22. </reply>
  23. # Client-side
  24. <client>
  25. <server>
  26. http
  27. </server>
  28. # tool is what to use instead of 'curl'
  29. <tool>
  30. lib1518
  31. </tool>
  32. <name>
  33. Extract Location: with broken absolute URL
  34. </name>
  35. <command>
  36. http://%HOSTIP:%HTTPPORT/%TESTNUMBER
  37. </command>
  38. </client>
  39. #
  40. # Verify data after the test has been "shot"
  41. <verify>
  42. <strippart>
  43. </strippart>
  44. <protocol>
  45. </protocol>
  46. <stdout>
  47. res 0
  48. status 302
  49. redirects 0
  50. effectiveurl http://%HOSTIP:%HTTPPORT/%TESTNUMBER
  51. redirecturl http://%HOSTIP:%HTTPPORT/h%20ttp://1.2.4.5/test
  52. </stdout>
  53. <errorcode>
  54. 0
  55. </errorcode>
  56. </verify>
  57. </testcase>