Skip to content

libcURL.EasyHandle.HTTPVersion

Andrew Lambert edited this page Nov 26, 2022 · 11 revisions

libcURL.EasyHandle.HTTPVersion

Property Declaration

 Dim HTTPVersion As libcURL.HTTPVersion

Remarks

Gets and sets the version of HTTP to be used. Pass a member of the HTTPVersion enum.

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 is not available except in very recent versions of libcurl. If HTTP/2 is not built-in then setting this property to HTTP/2 will raise an exception with libcURL.Errors.UNSUPPORTED_PROTOCOL(1) as the error number.

See also

Clone this wiki locally