using wget to connect to server and download file