I’m trying to connect a desktop application I am writing with the del.icio.us api @ Delicious API and simply provide them with my username and password and to request an url to post a bookmark to my profile.
The problem I have is that I don’t understand how to send my login credentials when I open a connection.
How would I go about doing this?
From the site you referenced:
HTTP-Authis header used in basic authentication.In Java, you can simply put your credentials in the URL:
You can verify that it was set correctly using the
URL.getUserInfo()method.