# httpcontenttype

Overrides the HTTP `Content-Type` header that omhttp sends with each request.

This parameter applies to omhttp: HTTP Output Module.

Name:

  httpcontenttype

Scope:

  input

Type:

  word

Default:

  input=application/json; charset=utf-8

Required?:

  no

Introduced:

  Not specified

## Description

The HTTP `Content-Type` header sent with each request. This parameter will override other defaults. If a batching mode is specified, the correct content type is automatically configured. The `Content-Type` header can also be configured using the httpheaders parameter; configure it in only one place.

## Input usage

    module(load="omhttp")

    action(
        type="omhttp"
        httpContentType="application/cloudevents+json"
    )

## See also

See also omhttp: HTTP Output Module.

Support: rsyslog Assistant | GitHub Discussions | GitHub Issues: rsyslog source project

Contributing: Source & docs: rsyslog source project

© 2008–2025 Rainer Gerhards and others. Licensed under the Apache License 2.0.