Sending my geolocation data from the esp8266 to a server to fetch it in arduino

I mean I want to know what is the commands that I have to keep in my code to send my data to an external server?