test1907 724 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <testcase>
  2. <info>
  3. <keywords>
  4. CURLINFO_EFFECTIVE_URL
  5. </keywords>
  6. </info>
  7. # Server-side
  8. <reply>
  9. <data nocheck="yes">
  10. HTTP/1.1 200 OK
  11. Date: Tue, 09 Nov 2010 14:49:00 GMT
  12. Server: test-server/fake
  13. Content-Type: text/html
  14. Funny-head: yesyes swsclose
  15. Content-Length: 0
  16. </data>
  17. </reply>
  18. # Client-side
  19. <client>
  20. <server>
  21. http
  22. </server>
  23. <name>
  24. CURLINFO_EFFECTIVE_URL with non-scheme URL
  25. </name>
  26. <tool>
  27. lib%TESTNUMBER
  28. </tool>
  29. <command>
  30. %HOSTIP:%HTTPPORT/hello/../%TESTNUMBER
  31. </command>
  32. </client>
  33. # Verify data after the test has been "shot"
  34. <verify>
  35. <protocol>
  36. GET /%TESTNUMBER HTTP/1.1
  37. Host: %HOSTIP:%HTTPPORT
  38. Accept: */*
  39. </protocol>
  40. <stdout>
  41. Effective URL: http://%HOSTIP:%HTTPPORT/%TESTNUMBER
  42. </stdout>
  43. </verify>
  44. </testcase>