test299 782 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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: Tue, 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. proxy
  27. </features>
  28. <name>
  29. FTP over HTTP proxy with user:pass not in url
  30. </name>
  31. <command>
  32. -x http://%HOSTIP:%HTTPPORT -u michal:aybabtu ftp://host.com/we/want/%TESTNUMBER
  33. </command>
  34. </client>
  35. # Verify data after the test has been "shot"
  36. <verify>
  37. <protocol>
  38. GET ftp://michal:aybabtu@host.com/we/want/%TESTNUMBER HTTP/1.1
  39. Host: host.com:21
  40. Authorization: Basic bWljaGFsOmF5YmFidHU=
  41. User-Agent: curl/%VERSION
  42. Accept: */*
  43. Proxy-Connection: Keep-Alive
  44. </protocol>
  45. </verify>
  46. </testcase>