Arduino HTTP Get/Post code running slow

Remove or reduce those delays inside your main loop.

Speed of the loop depends on the speed of the board you are using, speed of your network, the time it takes to connect to all the services that you are connecting to, and to do everything that the code has to do inside the loop.

As you can see you are doing a lot of things inside your loop. You could try and optimize the cycle time a little bit. However inevitably it's gonna take an x amount of time that's gonna vary time to time in order to establish those connections and to do all the tasks.

Good Luck!