Differences

This shows you the differences between the selected revisions of the page.

2013-07-03 2013-07-29
SendBuf (martin) section + examples (martin)
Line 4: Line 4:
  * in [[library|.NET assembly]], using ''[[library_sessionoptions#methods|SessionOptions.AddRawSettings]]'' method (when the settings cannot be configured using any dedicated property of ''[[library_sessionoptions|SessionOptions]]'' class).   * in [[library|.NET assembly]], using ''[[library_sessionoptions#methods|SessionOptions.AddRawSettings]]'' method (when the settings cannot be configured using any dedicated property of ''[[library_sessionoptions|SessionOptions]]'' class).
-Common advanced settings settings:+===== Common Advanced Settings =====
^ Name ^ Description ^ Values ^ ^ Name ^ Description ^ Values ^
Line 38: Line 38:
| ''SFTPMaxVersion'' | [[ui_login_sftp|Preferred SFTP protocol version]] | ''0''-''5'' = SFTP version number | | ''SFTPMaxVersion'' | [[ui_login_sftp|Preferred SFTP protocol version]] | ''0''-''5'' = SFTP version number |
| ''SendBuf'' | [[ui_login_connection#connection|Optimize connection buffer size]] | ''0'' = Off, Any positive value = On, value indicates size of the buffer, with recommended value of ''262144'' | | ''SendBuf'' | [[ui_login_connection#connection|Optimize connection buffer size]] | ''0'' = Off, Any positive value = On, value indicates size of the buffer, with recommended value of ''262144'' |
 +
 +===== Other Settings =====
To find correct syntax for settings not listed above, configure the setting in the GUI, store it into a [[session_configuration#site|site]], [[config|save configuration to an INI file]] and use the same syntax as you find an INI file. To find correct syntax for settings not listed above, configure the setting in the GUI, store it into a [[session_configuration#site|site]], [[config|save configuration to an INI file]] and use the same syntax as you find an INI file.
 +
 +===== Example =====
 +For example to enable HTTP proxy, in [[scripting]]:
 +
 +<code winscp>
 +open <session_url> -rawsettings ProxyMethod=3 ProxyHost=proxy
 +</code>
 +
 +or in [[library|.NET assembly]] (using [[library_powershell|PowerShell]]):
 +
 +<code powershell>
 +$session.AddRawSettings("ProxyMethod", "3")
 +$session.AddRawSettings("ProxyHost", "proxy")
 +</code>

Last modified: by martin