test1110 659 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <testcase>
  2. # Test that the fragment is not send as part of the path
  3. # when it contains a query.
  4. <info>
  5. <keywords>
  6. HTTP
  7. CURLOPT_URL
  8. </keywords>
  9. </info>
  10. # Server-side
  11. <reply>
  12. <data>
  13. HTTP/1.1 200 OK
  14. Content-Length: 6
  15. hello
  16. </data>
  17. </reply>
  18. # Client-side
  19. <client>
  20. <server>
  21. http
  22. </server>
  23. <name>
  24. HTTP GET with URL that contains a fragment after the query part
  25. </name>
  26. <command>
  27. http://%HOSTIP:%HTTPPORT/%TESTNUMBER?q=foobar#fragment
  28. </command>
  29. </client>
  30. # Verify data after the test has been "shot"
  31. <verify>
  32. <protocol>
  33. GET /%TESTNUMBER?q=foobar HTTP/1.1
  34. Host: %HOSTIP:%HTTPPORT
  35. User-Agent: curl/%VERSION
  36. Accept: */*
  37. </protocol>
  38. </verify>
  39. </testcase>