test1529 535 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. HTTP proxy
  7. </keywords>
  8. </info>
  9. # Server-side
  10. <reply>
  11. <connect>
  12. HTTP/1.1 200 OK
  13. We-are: good
  14. </connect>
  15. </reply>
  16. # Client-side
  17. <client>
  18. <server>
  19. http
  20. http-proxy
  21. </server>
  22. <tool>
  23. lib1529
  24. </tool>
  25. <name>
  26. HTTP request-injection in URL sent over proxy
  27. </name>
  28. <command>
  29. "http://the.old.moo:%HTTPPORT/1529" %HOSTIP:%PROXYPORT
  30. </command>
  31. </client>
  32. # it should be detected and an error should be reported
  33. <verify>
  34. # 3 == CURLE_URL_MALFORMAT
  35. <errorcode>
  36. 3
  37. </errorcode>
  38. </verify>
  39. </testcase>