Working on downloadFile function for use in Win32, think I have it figured out but need to do more writing.