Run curl with the current firefox cookies. This is useful for interacting with logged in websites.
This code is Adapted from this Stack Exchange answer
# Fetch google with the cookies from the default profile
curlfire https://www.google.com/
# Fetch google with the cookies from the blah profile
curlfire -P blah https://www.google.com/
# Getting cookies
cookiefire > /tmp/cookies
curl -b /tmp/cookies https://www.google.com/
cd ~
git clone https://github.com/talwrii/curlfire
echo 'PATH=$PATH:~/curlfire' >> ~/.bashrc
- Adapted from this stack overflow answer
- Firebug and friends allow you to copy requests as curl. This can be suitable for debugging.
- Cookies can be exported manually from within firefox
All of these approaches can be problematic when automating tasks.