I used the command below to download cookie using CURL in bash. How do I use this file (cookies.txt) to access the page?
curl -u username --cookie cookies.txt --cookie-jar cookies.txt https://example.com
Your curl command is correct. With the --cookie cookies.txt option, you reuse the cookies that were previously saved with the --cookie-jar cookies.txt option.
With wget:
wget --load-cookies cookies.txt --save-cookies cookies.txt ...