i know this is an old thread but i just came across it. using the non winsock version it works just as i need it to but the issue i have is what if we dont know the file name to be used? like getting files from a php page? the filename is unkown thus no idea what to save it as