Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Authenticating with http connection ?

 
Deepti Bhatia
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Am trying to connect to a server with httpurlconnection. The connection fails with HTTP 401 since authentication is required.

Could you tell how do we authenticate, cannot locate an API call for authentication.

Regards,
 
Deepti Bhatia
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Found the solution to this.

Please close this topic.

Regards,
 
Nitesh Kant
Bartender
Posts: 1638
IntelliJ IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Found the solution to this.


It will be nice if you can post the solution also here so that anyone else bumping into this topic will get the solution!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic