Skip to content

libcURL.EasyHandle.SetFormData

Andrew Lambert edited this page Mar 16, 2017 · 18 revisions

libcURL.EasyHandle.SetFormData

Method Signatures

 Sub SetFormData(FormData As libcURL.MultipartForm)
 Sub SetFormData(FormData() As String)

Parameters

SetFormData(Dictionary)

Name Type Comment
FormData MultipartForm An HTML form.

SetFormData(String())

Name Type Comment
FormData String array An HTML form.

Remarks

To encode the form using multipart/form-data, pass a MultipartForm object. You may also pass a Dictionary of NAME:VALUE pairs to be automatically converted into a MultipartForm

To encode the form using application/x-www-form-urlencoded, pass an array of URL-encoded NAME=VALUE strings comprising HTML form elements. The form will be encoded as application/x-www-form-urlencoded.

Call EasyHandle.ClearFormData to clear the form before reusing the EasyHandle.

See also

Clone this wiki locally