I have to authenticace to a Web Service, with a custom header, but can't get the Job1.GetRequest.SetHeader to work
I always get :
Error description: Unknown type: anywheresoftware.b4a.http.HttpClientWrapper.HttpUriRequestWrapper
Are you missing a library reference?
What library do you guys use ?
I am doing a NON-UI App, by the way.
It’s part of the “standard” libraries that are installed with B4J. Could be that you have to scroll down in your library list (just a guess) to see it.
I always get error 404 while posting.
According to the application's manual I should get a nonce
I am using this in B4J
B4X:
Dim WrstServer As String = "http://192.168.0.202:8080"
Dim WinRESTKey As String ="u7crun6Qk4g4z0qxJRAWGA=="
Dim http as httpjob
http.Initialize("WinRestConnection",Me)
http.Username = "username"
http.Password = "password"
http.PostString(WrstServer, Block2Send)
http.GetRequest.SetContentEncoding("text/html")