Skip to main content

SPNEGO (GSS Negotiate) auth plugin for HTTPie.

Project description

SPNEGO (GSS Negotiate) auth plugin for HTTPie, based on Jakub’s httpie-ntlm example.


$ pip install httpie-negotiate

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


You need to have a valid Kerberos principal, run kinit first if necessary.

$ http --auth-type=negotiate --auth :

Kerberos mutual authentication is REQUIRED by default and is recommended. If you strictly require mutual authentication to be OPTIONAL or DISBALED, then you can use the HTTPIE_KERBEROS_MUTUAL environment variable.

$ HTTPIE_KERBEROS_MUTUAL=OPTIONAL http --auth-type=negotiate --auth :
$ HTTPIE_KERBEORS_MUTUAL=DISABLED http --auth-type=negotiate --auth :

You can also use HTTPie sessions:

# Create session
$ http --session=logged-in --auth-type=negotiate --auth :

# Re-use auth
$ http --session=logged-in POST hello=world

Project details

Download files

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

Files for httpie-negotiate, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size httpie-negotiate-1.0.1.tar.gz (2.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page