test1143 711 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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/%TESTNUMBER
  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. <protocol>
  38. GET /want/%TESTNUMBER HTTP/1.1
  39. Host: %HOSTIP:%HTTPPORT
  40. User-Agent: curl/%VERSION
  41. Accept: */*
  42. </protocol>
  43. </verify>
  44. </testcase>