in the URLConnection i came across an method called
setAllowUserInteraction(boolean enable). What does this method do?
Does it have something to do with Basic[User name & password] authentication where an GUI is displayed asking the user to enter his name & password?
So far i make an dumb get request to the server as follows
And i make my server return an unauthorized response requesting for Basic authenication as follows
Client just throws an error saying error response code and terminates. But if i specify an Authenticator as follows
Then authentication works.
is setUserInteraction() meant to make this whole process GUI based where password and username are entered in text fields and submitted thus eliminating the need for an Authenticator? If so how would i do that here?
What response does the server need to send and what parameter's need to be set in the HttpURLConnection to see this method in action?