top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to send user authentication information during URL Connection?

+2 votes
328 views
How to send user authentication information during URL Connection?
posted Apr 2, 2014 by Anshika Utadi

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

use HttpURLConnection.setRequestProperty and set all the appropriate headers to HTTP authorization.

answer Apr 3, 2014 by Yogeshwar Thakur
Similar Questions
+1 vote

Please help me with following -
1. Write a java program to get json data from URL http://echo.jsontest.com/Operand1/10/Operand2/5/Operator/+
2. Perform mathematical operation in java after reading JSON from above URL and print result.for ex.result=10+5=15
3. Result should be dynamic and should change if change values in above URL.

...