Skip to content

libcURL.URLParser.SetPartContent

Andrew Lambert edited this page Sep 20, 2022 · 6 revisions

libcURL.URLParser.SetPartContent

Method Signature

 Function SetPartContent(Part As libcURL.URLPart, Contents As String, Flags As Integer) As Boolean

Parameters

Name Type Comment
Part URLPart The part of the URL to modify.
Contents String The new contents of the URL part.
Flags Integer Feature flags (see remarks).

Return value

If the URL part was set this method returns True. If it returns False then consult URLParser.LastError for details.

Remarks

This method allows you specify custom options when modifying a URL part (as opposed to using the class properties.)

Flags may be zero or more of the following class constants: CURLU_NON_SUPPORT_SCHEME, CURLU_URLENCODE, CURLU_DEFAULT_SCHEME, CURLU_GUESS_SCHEME, CURLU_NO_AUTHORITY(libcurl 7.67.0 and newer), CURLU_PATH_AS_IS, or CURLU_ALLOW_SPACE. Refer to the libcurl documentation for a description of these flags.

Clone this wiki locally