test1111 698 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 name="1">
  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/1111?q=foobar#fragment#fragment2
  28. </command>
  29. </client>
  30. # Verify data after the test has been "shot"
  31. <verify>
  32. <strip>
  33. ^User-Agent:.*
  34. </strip>
  35. <protocol>
  36. GET /1111?q=foobar HTTP/1.1
  37. Host: %HOSTIP:%HTTPPORT
  38. Accept: */*
  39. </protocol>
  40. </verify>
  41. </testcase>