Platforms to show: All Mac Windows Linux Cross-Platform

/CURL/CURLS upload to Web App/Web Upload Receiver


Required plugins for this example:

You find this example project in your Plugins Download as a Xojo project file within the examples folder: /CURL/CURLS upload to Web App/Web Upload Receiver

This example is the version from Mon, 6th Nov 2022.

Project "Web Upload Receiver.xojo_binary_project"
Class App Inherits WebApplication
EventHandler Function HandleURL(Request As WebRequest, Response As WebResponse) As Boolean Dim r As String = Request.Body Dim msg As String = "Received request with "+Str(Len(r))+" bytes attached." Dim c As Integer = SessionCount-1 For i As Integer = 0 To c Dim s As session = session(app.SessionAt(i)) s.WebPage1.ListBox1.AddRow msg Next Response.Status = 200 Return True End EventHandler
End Class
Class Session Inherits WebSession
Const ErrorDialogCancel = "Do Not Send"
Const ErrorDialogMessage = "This application has encountered an error and cannot continue."
Const ErrorDialogQuestion = "Please describe what you were doing right before the error occurred:"
Const ErrorDialogSubmit = "Send"
Const ErrorThankYou = "Thank You"
Const ErrorThankYouMessage = "Your feedback helps us make improvements."
Const NoJavascriptInstructions = "To turn Javascript on, please refer to your browser settings window."
Const NoJavascriptMessage = "Javascript must be enabled to access this page."
End Class
Class WebPage1 Inherits WebPage
Control ListBox1 Inherits WebListBox
ControlInstance ListBox1 Inherits WebListBox
End Control
End Class
Sign
End Sign
End Project

See also:

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


The biggest plugin in space...