test1320 982 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <testcase>
  2. <info>
  3. <keywords>
  4. SMTP
  5. HTTP
  6. HTTP CONNECT
  7. HTTP proxy
  8. </keywords>
  9. </info>
  10. #
  11. # Server-side
  12. <reply>
  13. <connect>
  14. HTTP/1.1 200 Mighty fine indeed
  15. smtp: sure hit me
  16. </connect>
  17. </reply>
  18. #
  19. # Client-side
  20. <client>
  21. <server>
  22. smtp
  23. http-proxy
  24. </server>
  25. <features>
  26. http
  27. proxy
  28. </features>
  29. <name>
  30. SMTP send tunneled through HTTP proxy
  31. </name>
  32. <stdin>
  33. From: different
  34. To: another
  35. body
  36. </stdin>
  37. <command>
  38. smtp://smtp.%TESTNUMBER:%SMTPPORT/%TESTNUMBER --mail-rcpt recipient@example.com --mail-from sender@example.com -T - -p -x %HOSTIP:%PROXYPORT
  39. </command>
  40. </client>
  41. #
  42. # Verify data after the test has been "shot"
  43. <verify>
  44. <protocol>
  45. EHLO %TESTNUMBER
  46. MAIL FROM:<sender@example.com>
  47. RCPT TO:<recipient@example.com>
  48. DATA
  49. QUIT
  50. </protocol>
  51. <upload>
  52. From: different
  53. To: another
  54. body
  55. .
  56. </upload>
  57. <proxy>
  58. CONNECT smtp.%TESTNUMBER:%SMTPPORT HTTP/1.1
  59. Host: smtp.%TESTNUMBER:%SMTPPORT
  60. User-Agent: curl/%VERSION
  61. Proxy-Connection: Keep-Alive
  62. </proxy>
  63. </verify>
  64. </testcase>