web stats
programmatically change HTTP method - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Thread Tools Display Modes
Old 08-03-2017, 04:54 AM
mpagnoni mpagnoni is offline
What's HL7?
Join Date: Oct 2016
Posts: 5
mpagnoni is on a distinguished road
Default programmatically change HTTP method

is there any way to change programmatically the Method in a HTTP Sender?

I explain a bit better my request: I have to send two REST request to a server, differing just for the HTTP method used.
As usual in REST, I have to use POST method to create a new resource, and eventually PUT method to update the same resource at a later time.

I know I could set two destinations with a filter (setting some channelMap to filter on), but I'd rather prefer changing via transformer script the HTTP method, both not to duplicate http config and not to see always a "filtered" destination in the dashboard.

Is it possible?

(sorry, did not mention, I'm on mirth 3.5)
Reply With Quote
Old 08-03-2017, 06:49 AM
narupley's Avatar
narupley narupley is offline
Mirth Employee
Join Date: Oct 2010
Posts: 7,126
narupley is on a distinguished road

Not right now, but I've created an issue for it: MIRTH-4205
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, rest

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 04:01 PM.

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