What is the primary purpose of using the 'curl' command in network troubleshooting
To display the routing table of the host system
To monitor real-time system resource statistics including CPU and memory usage
To transfer data from or to a server, including testing the availability of web services
To check for open ports on the local machine or a remote server