It is not possible.
Good evening,If you know the device ip address then you can connect to it with any valid connection. What I meant to say without a more complex solution it is not possible to access the server over the internet.
it's possible to upload file to web server (android device 1) from job.postfile (android device 2).
The donwload job works fine with job1.download("http://XX.XX.XX.XX:5555/download/mnt/sdcard/namefile")
I have tried job1.postfile("http://XX.XX.XX.XX:5555/upload/mnt/sdcard/",File.DirInternalCache,"datastore") but I received SERVER ERROR.
HTTPClient.ExecuteCredentials( job.GetRequest, taskCounter, job.Username, job.Password)
Credentials which are set are not used if the Server does not request them. In a normal webserver you need to use a .htaccess file. I dont know if this lib supports this.I can't find a way the see any part of the credentials that are set
Dim job As HttpJob job.Initialize("getuser",Me) job.Download("http://192.168.192.24:5555/") 'http://donmanfred.basic4android.de/req.php job.GetRequest.SetHeader("Username", "MyUsername") job.GetRequest.SetHeader("Password", "mypass")
Sub Server_HandleRequest (Request As ServletRequest, Response As ServletResponse) Try Log("Request: Username="&Request.GetHeader("Username")) Log("Request: Password="&Request.GetHeader("Password")) Log("Client: " & Request.RemoteAddress) Log(Request.RequestURI) 'handle the request based on the URL
I guess that is the reason I couldn't get anything.Credentials which are set are not used if the Server does not request them. In a normal webserver you need to use a .htaccess file. I dont know if this lib supports this.
Dim jo As JavaObject jo.InitializeStatic("java.util.Locale") jo.RunMethod("setDefault", Array(jo.GetField("US")))