Where should I add a header in python-jira authentication?
My header should be like the below. load balancer is redirecting request based on dns name only. That's why it is required for me.
Header:
'host': 'DNS_of_server'
I have the below code, where should I add the header in this? I couldn't able to find that in the documentation.
options = {
'server': 'https://ip-address',
}
try:
jira = JIRA(options, basic_auth=(user, passwd))
except JIRAError as e:
print(e.status_code, e.text)
It works fine in curl command when I pass header parameter with curl.
I've added it to the JIRA object in __init__.py but you should be able to update your JIRA object in your code. Look for a headers list in that object
Thanks for your response Matt
Are you referring to this one?
__init__(self, server=None, options=None, basic_auth=None, oauth=None, jwt=None, kerberos=False, kerberos_options=None, validate=False, get_server_info=True, async=False, logging=True, max_retries=3, proxies=None, timeout=None, auth=None)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.