File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Authenticating with http connection ?

 
Deepti Bhatia
Greenhorn
Posts: 25
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic