web stats
Mirth S3 File Writer Custom HTTP Headers - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 01-10-2019, 12:31 PM
mwhitcher mwhitcher is offline
What's HL7?
 
Join Date: Jul 2017
Posts: 4
mwhitcher is on a distinguished road
Default Mirth S3 File Writer Custom HTTP Headers

Mirth 3.6 now supports AWS S3 directly as an option in File Writer destination.
My S3 bucket uses Object Lock parameters so I need to add a Custom Content-MD5 HTTP header. Any help in setting this is appreciated
Reply With Quote
  #2  
Old 01-10-2019, 12:40 PM
narupley's Avatar
narupley narupley is online now
Mirth Employee
 
Join Date: Oct 2010
Posts: 7,090
narupley is on a distinguished road
Default

Custom HTTP headers for PUT requests can be set in the Advanced Settings for the S3 mode. Just click the wrench icon at the top of the File Writer 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
  #3  
Old 01-10-2019, 12:48 PM
mwhitcher mwhitcher is offline
What's HL7?
 
Join Date: Jul 2017
Posts: 4
mwhitcher is on a distinguished road
Default

Thanks for the reply. I see that I can add the header but my concern is what to place in the value for the header. I need to add a new header named 'Content-MD5' and I would assume that the value for the header would need to be dynamically created for each file being written.
Reply With Quote
  #4  
Old 01-10-2019, 12:53 PM
narupley's Avatar
narupley narupley is online now
Mirth Employee
 
Join Date: Oct 2010
Posts: 7,090
narupley is on a distinguished road
Default

Yep that's right, you'd probably want to calculate the MD5 in a transformer and include it as a channel/connector map variable.
__________________
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
Reply

Tags
aws s3, content-md5, custom header

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:24 AM.


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