churl
Authenticated cURL via browser context. Leverages a running Chromium browser's debugging interface to issue HTTP requests with automatic cookie and CSRF token extraction.
Installation
go install src.heming.dev/heming/churl@latest
You can also download a pre-built binary and put it somewhere in your $PATH.
Or build from source:
git clone https://src.heming.dev/heming/churl.git
cd churl
make build
Features
- Browser integration via Chrome DevTools Protocol
- Automatic cookie and CSRF token extraction
- Transparent cURL argument passthrough
Usage
Launch browser with debugging enabled:
churl
Show connection information:
churl info
Make authenticated requests:
churl https://api.example.com/data
churl https://api.example.com/data -X POST -d '{"key":"value"}'
All cURL options are supported and passed through transparently.