N00b questions - downloading files from a website
I am attempting to write my first Java program from scratch. My goal is to get it to 1) connect to a certain website, 2) download an MP3 file and 3) add it to an iTunes playlist. I accomplished step #1 using URL and URLConnect instances. Now I am on step #2, which requires me to enter login information before I can download the file. So my question is: how do I instruct the program to enter my username and password into the respective fields? I am not necessarily looking for explicit coding instructions, just general guidance on what topics I need to look up and read about. Any advice would be appreciated.