Hello,
I am trying to upload files to a html based "FTP" client, i put ftp in brackets as it has nothing to do with ftp and this is just what are calling it. I have not done very much with web based requests and don't really know where to start with this one.
the web service is called synaman and is offered by synametrics
http://web.synametrics.com/SynaMan.htm
it requires a secure login and then you need to upload files one at a time from a javascript based file browser.
so what i need to do is authenticate and then upload the new files to the server. I am feeling very stupid as I am unable to figure this out.
Thank You.
I am trying to upload files to a html based "FTP" client, i put ftp in brackets as it has nothing to do with ftp and this is just what are calling it. I have not done very much with web based requests and don't really know where to start with this one.
the web service is called synaman and is offered by synametrics
http://web.synametrics.com/SynaMan.htm
it requires a secure login and then you need to upload files one at a time from a javascript based file browser.
so what i need to do is authenticate and then upload the new files to the server. I am feeling very stupid as I am unable to figure this out.
B4X:
Sub Globals
Dim job1 As HttpJob
Dim job2 As HttpJob
job1.Initialize("Job1",Me)
job2.initialize("Job2",Me)
End Sub
Sub Activity_Create(FirstTime As Boolean)
End Sub
Sub Activity_Resume
job1.PostString("server","uid=user&pwd=pass")
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub jobdone (job As HttpJob)
Dim namer As String = job.JobName
If job.Success = True Then
If job.JobName="Job1" Then
job2.PostFile("server?operation=up",File.DirRootExternal , "WTRCRINP.WCC")
End If
If job.JobName="Job2" Then
job1.Release
job2.Release
Activity.Finish
End If
Else
ToastMessageShow(job.ErrorMessage,True)
End If
End Sub
Thank You.
Last edited: