Arduino "reqeuest new script" over wifi

Basically i just want to upload the code to my server. And my friend who has the device can manually update. I want to implement this into a bigger project im planning