I want to make the equivalent of a ‘curl’ call to a webserver, but don’t understand how to break the curl command up correctly to use the TCPSocket. The command is this:
if you drop that UrlConnection into a window add a button and in the click event
something like this
Var f as FolderItem = SpecialFolder.Documents.Child("File.docx")
MyConnection.RequestHeader("Content-Type") = "application/vnd.openxmlformats-officedocument.presentationml.presentation"
Var content As String
content = MyConnection.SendSync("POST", "https://localhost/scan/binary", f, 30)
Var status As Integer = MyConnection.HTTPStatusCode