Change the way to ping hub

Remove multi curl and use one curl with many urls (since the hub accept multiple urls at once)