Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
talwrii committed Dec 6, 2017
1 parent 94ca468 commit cc40725
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
# curlfire
Run curl with the current firefox cookies. This is useful for interacting with logged in websites.
Run curl with the current [Firefox](https://www.mozilla.org/en-US/firefox/) cookies.
This is useful for interacting with logged in websites from the shell, without having to manually deal with the login process.

The executable `cookiefire` included in this package can be used to extract the cookies from Firefox.

# Attribution

This code is Adapted from [this Stack Exchange answer](https://superuser.com/questions/666167/how-do-i-use-firefox-cookies-with-wget)
This code is adapted from [this Stack Exchange answer](https://superuser.com/a/1239036/653515) by [hackerb9](https://superuser.com/users/400780/hackerb9).

# Usage

```
Expand All @@ -25,11 +29,12 @@ git clone https://github.com/talwrii/curlfire
echo 'PATH=$PATH:~/curlfire' >> ~/.bashrc
```

# Alternative and prior work
# Alternatives and prior work

* Adapted from [this stack overflow answer](https://superuser.com/questions/666167/how-do-i-use-firefox-cookies-with-wget)
* Adapted from [this Stack Exchange answer](https://superuser.com/questions/666167/how-do-i-use-firefox-cookies-with-wget)
* Firebug and friends allow you to copy requests as curl. This can be suitable for debugging.
* Cookies can be exported manually from within firefox
* Cookies can be exported manually from within Firefox

All of these approaches can be problematic when automating tasks.
All of these approaches can be time consuming when automating tasks.

[Prior to Firefox 57](https://support.mozilla.org/en-US/kb/frequently-asked-questions-firefox-addon), the [remote control extension](https://addons.mozilla.org/en-US/firefox/addon/remote-control/) could be used to interact with the page currently viewed in Firefox from the shell (including outputting the current [document object model](https://en.wikipedia.org/wiki/Document_Object_Model) as HTML).

0 comments on commit cc40725

Please sign in to comment.