DEVFYI - Developer Resource - FYI

How can I send user authentication information while makingURLConnection?

Servlet Interview Questions and Answers


(Continued from previous question...)

11. How can I send user authentication information while makingURLConnection?

You'll want to use HttpURLConnection.setRequestProperty and set all the appropriate headers to HTTP authorization.

(Continued on next question...)

Other Interview Questions