A C program that tests download and upload speeds on network servers using libcurl.
Make sure to create the bin directory first:
mkdir -p binCompile with:
makeThis creates an executable named main.
./bin/main [OPTIONS]make clean-d a– Download test on all servers-d <ID>– Download test on a single server (specify server ID)-u a– Upload test on all servers-u <ID>– Upload test on a single server (specify server ID)-l <COUNTRY>– Test servers in a specific country, print their results, and report the best upload/download server-c– Get your current location
# Test download and upload on all servers (default)
./bin/main
# Download test on server with ID 5
./bin/main -d 5
# Upload test on all servers
./bin/main -u a
# Find best server in Poland
./bin/main -l Poland
# Get current location
./bin/main -c
# Download on server 3 and upload on all servers
./bin/main -d 3 -u alibcurl– For HTTP requestscjson– For JSON parsing