Skip to content
Andrew Lambert edited this page May 27, 2015 · 22 revisions

This example sends a synchronous HTTP POST request containing a multipart/form-data form with two string elements and one file element.

  Dim cURL As New cURLClient
  Dim form As New Dictionary
  form.Value("Test1") = "TestValue1"
  form.Value("Test2") = "TestValue2"
  Dim f As FolderItem = GetOpenFolderItem("")
  form.Value("file") = f
  If Not curl.Post("http://www.example.com/submit.php", form) Then
    MsgBox(libcURL.FormatError(curl.LastError))
  End If

Clone this wiki locally