Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
ciecplib 0.9.0
ciecplib 0.9.0
  • Installation

Modules

  • ciecplib
    • get
    • get_cert
    • get_cookie
    • head
    • post
    • Session
  • ciecplib.cookies
    • extract_session_cookie
    • has_session_cookies
    • load_cookiejar
    • ECPCookieJar
  • ciecplib.kerberos
    • find_principal
    • has_credential
    • realm
  • ciecplib.utils
    • get_ecpcookie_path
    • get_idp_url
    • get_idps
    • get_x509_proxy_path
    • random_string
    • EcpIdentityProvider
  • ciecplib.x509
    • check_cert
    • generate_proxy
    • load_cert
    • load_pkcs12
    • print_cert_info
    • time_left
    • write_cert

Command-line scripts

  • ecp-cert-info
  • ecp-curl
  • ecp-get-cert
  • ecp-get-cookie
Back to top
View this page

head¶

ciecplib.head(url, **kwargs)¶

Send a HEAD request using ECP authentication.

Parameters:
  • url (str) – URL path for request.

  • endpoint (str, optional) – ECP endpoint name or URL for request.

  • username (str, optional) – the username with which to authenticate, will be prompted for if not given, and not using kerberos.

  • password (str, optional) – the password with which to authenticate, will be prompted for if not given, and not using kerberos.

  • kerberos (bool, optional) – use existing kerberos credential for login, default is to try, but fall back to username/password prompt.

  • cookiejar (http.cookiejar.CookieJar, optional) – a jar of cookies to add to the requests.Session.

  • kwargs – other keyword arguments are passed directly to requests.Session.head()

Returns:

response (http.client.HTTPResponse) – the response from the URL

See also

requests.Session.head

for full details of the request handling

Next
post
Previous
get_cookie
Copyright © 2025, Cardiff University
Made with Sphinx and @pradyunsg's Furo
On this page
  • head
    • head()