Skip to content

libcURL.EasyHandle.ConnectionType

Andrew Lambert edited this page Sep 17, 2015 · 22 revisions

#libcURL.EasyHandle.ConnectionType

##Property Declaration

 Dim ConnectionType As Integer

##Remarks By default, libcURL will decide when to use SSL based on the URL and other heuristics. Use this property to explicitly request or require the use of SSL. Set this to one of the libcURL.Opts.USE_SSL_* constants

Constant Value Comment
USE_SSL_NONE 0 Let libcURL decide (default)
USE_SSL_TRY 1 Attempt using SSL, proceed without it if unavailable
USE_SSL_CONTROL 2 Force FTP control connections to use SSL
USE_SSL_ALL 3 Force all connections to use SSL

This property does not control whether libcURL validates SSL certificates. For that, use EasyHandle.Secure.

Not all supported protocols can be used with SSL.

##Example This example sets the EasyHandle to require SSL for all connections:

 Dim curl As New libcURL.EasyHandle
 curl.ConnectionType = libcURL.Opts.USE_SSL_ALL

##See also

Clone this wiki locally