New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP client send doesn't support variable substitution for header names #258

s1hofmann opened this Issue Jun 14, 2017 · 0 comments


None yet
2 participants

s1hofmann commented Jun 14, 2017


In Citrus (2.7.1) the http-client send() action doesn't support variable substitution for header names.

In a scenario where each request in different test cases requires a header with a static name, this name could be made available to all tests via a global Citrus variable.

http(action ->
        .header(${HEADER_NAME}, "${HEADER_VALUE}"));

Unfortunately, variable substitution only works for header values, but not for the header name, so in the above example only the variable ${HEADER_VALUE} will be correctly substituted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment