web stats
http Listener content-type - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Thread Tools Display Modes
Old 10-11-2012, 04:40 AM
wello007 wello007 is offline
OBX.3 Kenobi
Join Date: Dec 2007
Posts: 160
wello007 is an unknown quantity at this point
Default http Listener content-type


Is there a way to change dynamically the value of the content-type on a http listener?

adding a header worked
Content-Type : ${my variable}

Last edited by wello007; 10-11-2012 at 05:37 AM. Reason: RESOLVED
Reply With Quote
Old 10-11-2012, 07:42 AM
narupley's Avatar
narupley narupley is online now
Mirth Employee
Join Date: Oct 2010
Posts: 7,123
narupley is on a distinguished road

Just to clarify, that will change the content-type for the response, not the message that is received by the channel. It sounds like that was your intent anyway though. You should also be able to achieve this just by entering the content-type you want into the "Response Content Type" field right there on the HTTP Listener settings.
Step 1: JAVA CACHE...DID YOU CLEAR ...wait, ding dong the witch is dead?

Nicholas Rupley
Work: 949-237-6069
Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.

- How do I foo?
- You just bar.
Reply With Quote

http, listener

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -8. The time now is 06:20 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Mirth Corporation