Skip to content

libcURL.EasyHandle.HTTPVersion

Andrew Lambert edited this page Mar 15, 2017 · 11 revisions

#libcURL.EasyHandle.HTTPVersion

Property Declaration

 Dim HTTPVersion As Integer

Remarks

Gets and sets the version of HTTP to be used. Pass 1 for HTTP/1.0, 2 for HTTP/1.1, 3 for HTTP/2.0, or 0 if libcURL is free to decide.

If libcURL was built without HTTP support then setting this option will raise an exception with libcURL.Errors.UNKNOWN_OPTION (48) as the error number.

Note that HTTP/2.0 is not available except in very recent experimental versions of libcurl. If HTTP/2.0 is not supported then setting this property to HTTP/2.0 will raise an exception with libcURL.Errors.UNSUPPORTED_PROTOCOL(1) as the error number.

See also

Clone this wiki locally