Skip to main content

django Auth plugin for HTTPie.

Project description

## httpie-django-auth

django auth plugin for HTTPie.

## Installation

$ pip install httpie-django-auth

You should now see django under --auth-type in $ http --help output.

## Usage

By default httpie-django-auth uses /admin/login to login. If you need to use some other url for logging, set HTTPIE_DJANGO_AUTH_URL environment variable.

export HTTPIE_DJANGO_AUTH_URL=’/accounts/login/’

Make requests to your site

$ http –auth-type=django –auth=’username:password’ example.org $ http -A=django –auth=’username:password’ example.org $ http -A=django –auth=’username:password’ example.org/profile $ http -A=django –auth=’username:password’ http://127.0.0.1:8000/profile

## License

See LICENSE.txt

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

httpie-django-auth-0.1.0.tar.gz (2.4 kB view details)

Uploaded Source

File details

Details for the file httpie-django-auth-0.1.0.tar.gz.

File metadata

File hashes

Hashes for httpie-django-auth-0.1.0.tar.gz
Algorithm Hash digest
SHA256 24a289fdd836150a61a356a90c5705a4febfe991a79a5c31e6305323f4369e59
MD5 2eddc7f7c7366aec725136dc0a74bd13
BLAKE2b-256 df3fafe65d9ad2484d7a514b7773d93bb4976a9aa583c0592db74b4265d4689f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page