test1142 1015 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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/11420001
  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/11420001
  28. </datacheck>
  29. </reply>
  30. # Client-side
  31. <client>
  32. <server>
  33. http
  34. </server>
  35. <name>
  36. HTTP redirect to http://// (four slashes!)
  37. </name>
  38. <command>
  39. %HOSTIP:%HTTPPORT/want/1142 -L -x http://%HOSTIP:%HTTPPORT
  40. </command>
  41. </client>
  42. # Verify data after the test has been "shot"
  43. <verify>
  44. <strip>
  45. ^User-Agent:.*
  46. </strip>
  47. <protocol>
  48. GET http://%HOSTIP:%HTTPPORT/want/1142 HTTP/1.1
  49. Host: %HOSTIP:%HTTPPORT
  50. Accept: */*
  51. Proxy-Connection: Keep-Alive
  52. </protocol>
  53. # 3, CURLE_URL_MALFORMAT for the four slashes
  54. <errorcode>
  55. 3
  56. </errorcode>
  57. </verify>
  58. </testcase>