How to get page content using cURL?

To get the content of a webpage using cURL, you can use the following command:

curl <URL>

This will retrieve the content of the webpage and print it to the terminal.

If you want to save the content to a file, you can use the -o flag to specify an output file:

curl  -o output.html

This will save the content of the webpage to a file called output.html.

You can also use the -L flag to follow redirects, if the webpage you are trying to access is redirected to another location:

curl  -L

This will follow any redirects and retrieve the content of the final webpage.

You can find more information and options for the cURL command by typing man curl or by visiting the cURL documentation online.