Skip to content

HTTPJSONHandler http POST customisable header #2850

@Lewih

Description

@Lewih

requests.post(
self._url, data=json_record,
headers={'Content-type': 'application/json',
'Accept-Charset': 'UTF-8'}
)

It would be nice to be able to customise the header of the http POST request via config file.
This may be useful for some services requiring auth via API Tokens while using the httpjson handler.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions