Platforms to show: All Mac Windows Linux Cross-Platform

/CURL/CURL iOS Test


Last modified Sat, 19th Sep 2025.

You find this example project in your MBS Xojo Plugin download as a Xojo project file within the examples folder: /CURL/CURL iOS Test

Download this example: CURL iOS Test.zip

Project "CURL iOS Test.xojo_binary_project"
Class App Inherits MobileApplication
End Class
Class Screen1 Inherits MobileScreen
Control DownloadButton Inherits MobileButton
ControlInstance DownloadButton Inherits MobileButton
Constraint Constraint 1
Constraint Constraint 2
Constraint Constraint 3
Constraint Constraint 4
EventHandler Sub Pressed() // your app may need NSLocalNetworkUsageDescription in info.plist for local network access. // also you may need com.apple.security.network.client entitlement Var c As New CURLSMBS c.OptionURL = "https://www.monkeybreadsoftware.de/xojo/" #If false then // synchronously var e as integer = c.Perform TextArea1.Text = c.DebugData If e = 0 Then MessageBox "success" Else MessageBox "Sadly this failed: "+c.LasterrorMessage End If #Else // asynchronously call CURLSMultiMBS.SharedInstance.AddCURL c, AddressOf CURLFinished #endif End EventHandler
End Control
Control TextArea1 Inherits MobileTextArea
ControlInstance TextArea1 Inherits MobileTextArea
Constraint Constraint 1
Constraint Constraint 2
Constraint Constraint 3
Constraint Constraint 4
End Control
Sub CURLFinished(c as CURLSMBS, Result as Integer) TextArea1.Text = c.DebugData If result = 0 Then MessageBox "success" Else MessageBox "Sadly this failed: "+c.LasterrorMessage End If End Sub
End Class
Class LaunchScreen Inherits MobileScreen
End Class
Sign
End Sign
Sign
End Sign
End Project

See also:

Download this example: CURL iOS Test.zip

The items on this page are in the following plugins: MBS CURL Plugin.


The biggest plugin in space...