test1111 698 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <testcase>
  2. # Test that no fragment is not send as part of the path
  3. # when the URI contains 2 '#' (does not follow RFC 2396)
  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 whose fragment contains a # (which is illegal)
  25. </name>
  26. <command>
  27. http://%HOSTIP:%HTTPPORT/%TESTNUMBER?q=foobar#fragment#fragment2
  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>