test1906 759 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <testcase>
  2. <info>
  3. <keywords>
  4. CURLOPT_CURLU
  5. CURLOPT_PORT
  6. </keywords>
  7. </info>
  8. # Server-side
  9. <reply>
  10. <data nocheck="yes">
  11. HTTP/1.1 200 OK
  12. Date: Tue, 09 Nov 2010 14:49:00 GMT
  13. Server: test-server/fake
  14. Content-Type: text/html
  15. Funny-head: yesyes swsclose
  16. </data>
  17. </reply>
  18. # Client-side
  19. <client>
  20. <server>
  21. http
  22. </server>
  23. <name>
  24. CURLOPT_CURLU and CURLOPT_PORT
  25. </name>
  26. <tool>
  27. lib%TESTNUMBER
  28. </tool>
  29. # The tool does two requests, the first sets CURLOPT_PORT to 1
  30. # the second resets the port again and expects that request to work.
  31. <command>
  32. http://%HOSTIP:%HTTPPORT/%TESTNUMBER
  33. </command>
  34. </client>
  35. # Verify data after the test has been "shot"
  36. <verify>
  37. <protocol>
  38. GET /%TESTNUMBER HTTP/1.1
  39. Host: %HOSTIP:%HTTPPORT
  40. Accept: */*
  41. </protocol>
  42. </verify>
  43. </testcase>