proxy downloading of file via sockets