Hi there,
I am trying to secure a Web Service which currently has no security on it by using Basic HTTP Authentication and am a little bit confused as to how I would call the service in B4J.
I was reading the thread in the B4A section of the forum about setting headers, as per the title of this post.
Could I ask for a more complete example of how to set the headers for Basic HTTP Authentication? I am a little confused between using:
and setting the username and password via Job.username and Job.password. If I do it that way, how do I then set the header?
Thank you for your help.
Jonathan
I am trying to secure a Web Service which currently has no security on it by using Basic HTTP Authentication and am a little bit confused as to how I would call the service in B4J.
I was reading the thread in the B4A section of the forum about setting headers, as per the title of this post.
Could I ask for a more complete example of how to set the headers for Basic HTTP Authentication? I am a little confused between using:
B4X:
job1.GetRequest.SetHeader()
and setting the username and password via Job.username and Job.password. If I do it that way, how do I then set the header?
Thank you for your help.
Jonathan