test299 768 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <testcase>
  2. <info>
  3. <keywords>
  4. FTP
  5. HTTP
  6. CURLOPT_USERPWD
  7. HTTP proxy
  8. </keywords>
  9. </info>
  10. # Server-side
  11. <reply>
  12. <data>
  13. HTTP/1.0 200 OK swsclose
  14. Date: Thu, 09 Nov 2010 14:49:00 GMT
  15. Server: test-server/fake
  16. blablabla
  17. </data>
  18. </reply>
  19. # Client-side
  20. <client>
  21. <server>
  22. http
  23. </server>
  24. <features>
  25. ftp
  26. </features>
  27. <name>
  28. FTP over HTTP proxy with user:pass not in url
  29. </name>
  30. <command>
  31. -x http://%HOSTIP:%HTTPPORT -u michal:aybabtu ftp://host.com/we/want/299
  32. </command>
  33. </client>
  34. # Verify data after the test has been "shot"
  35. <verify>
  36. <strip>
  37. ^User-Agent:.*
  38. </strip>
  39. <protocol>
  40. GET ftp://michal:aybabtu@host.com/we/want/299 HTTP/1.1
  41. Authorization: Basic bWljaGFsOmF5YmFidHU=
  42. Host: host.com:21
  43. Accept: */*
  44. Proxy-Connection: Keep-Alive
  45. </protocol>
  46. </verify>
  47. </testcase>