test1143 702 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. followlocation
  7. </keywords>
  8. </info>
  9. # Server-side
  10. <reply>
  11. <data>
  12. HTTP/1.1 200 hello
  13. Connection: close
  14. Content-Length: 4
  15. hej
  16. </data>
  17. </reply>
  18. # Client-side
  19. <client>
  20. <server>
  21. http
  22. </server>
  23. <name>
  24. HTTP URL with http:/ (one slash!)
  25. </name>
  26. <command>
  27. http:/%HOSTIP:%HTTPPORT/want/1143
  28. </command>
  29. <setenv>
  30. # Needed for MSYS2 to not treat the argument as a POSIX path list
  31. # that has to be converted to Windows paths
  32. MSYS2_ARG_CONV_EXCL=http:/
  33. </setenv>
  34. </client>
  35. # Verify data after the test has been "shot"
  36. <verify>
  37. <strip>
  38. ^User-Agent:.*
  39. </strip>
  40. <protocol>
  41. GET /want/1143 HTTP/1.1
  42. Host: %HOSTIP:%HTTPPORT
  43. Accept: */*
  44. </protocol>
  45. </verify>
  46. </testcase>