web stats
HTTP Listener Redirect - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 06-22-2018, 01:40 AM
AlexNeiva AlexNeiva is offline
Mirth Guru
 
Join Date: Oct 2013
Location: Portugal
Posts: 277
AlexNeiva is on a distinguished road
Question HTTP Listener Redirect

Hello,


i'm using Mirth 3.5.1 and i have a HTTP Listener in the Source Connector.
Everything works ok except one particular thing in Static Resources area.
I put a File in the resources when a particular path is accessed, problem is with the HTML page that does not load the CSS inside a LINK tag!
The CSS are just loaded if i insert them inside the HTML page, everything that is outside the page is not loaded! Please check the attached image.

It that normal?


Thank you
Attached Images
File Type: png static_resource.PNG (3.7 KB, 12 views)
__________________
Best Regards,
Alex Neiva
Reply With Quote
  #2  
Old 06-22-2018, 05:45 AM
siddharth siddharth is offline
Mirth Guru
 
Join Date: Feb 2013
Posts: 832
siddharth is on a distinguished road
Default

Interesting.

I think if you are trying to send back an HTML file, then your response content type should change to text/html instead of text/plain. Try that and see.
__________________
HL7v2.7 Certified Control Specialist!
Reply With Quote
  #3  
Old 06-22-2018, 05:52 AM
AlexNeiva AlexNeiva is offline
Mirth Guru
 
Join Date: Oct 2013
Location: Portugal
Posts: 277
AlexNeiva is on a distinguished road
Default

I could not attach the complete image but the Content Type is already set to text/html.
__________________
Best Regards,
Alex Neiva
Reply With Quote
  #4  
Old 06-25-2018, 02:02 AM
AlexNeiva AlexNeiva is offline
Mirth Guru
 
Join Date: Oct 2013
Location: Portugal
Posts: 277
AlexNeiva is on a distinguished road
Default

I already set the Resource Type to "Directory" instead of "File", so i put in root folder HTML page and CSS/JS scripts.

When call it redirect the HTML page same thing happen! No CSS or JS files are loaded.
__________________
Best Regards,
Alex Neiva
Reply With Quote
Reply

Tags
css, html, http, http listener, static resource

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 03:52 AM.


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