I Posted a Reply To A Similar Topic Not Long Ago, And Made An Example Script To Show How You can "Download" / "Update" A File, i suggest you read it, as your socket there has a few little problems....for example, your going to close the socket on the first read, no matter if you got what you wanted or not, thats just how you have it written, second, /download isnt a command, so for anyone to help you, we would need to know what /download does.... For now... here is the link to the example i posted a week ago or so, to knappen i beleive!!!
Click Here!!!