-
-
Notifications
You must be signed in to change notification settings - Fork 11
HTTP POST Example
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 IfWiki home | Project page | Bugs | Become a sponsor
Text and code examples are Copyright ©2014-26 Andrew Lambert, offered under the CC BY-SA 3.0 License.