# X-Bridge and Content-Type

**URL:** <https://techcommunity.softwareag.com/t/x-bridge-and-content-type/58344>\
**Category:** Forum\
**Tags:** Former-Crossvision-Products, Service-Orchestrator\
**Created:** [May 3, 2001, 5:30am UTC](https://techcommunity.softwareag.com/t/x-bridge-and-content-type/58344 "2001-05-03T05:30:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guest](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/guest/32/75_2.png) [@Guest](https://techcommunity.softwareag.com/u/Guest)\
**Post date:** [May 3, 2001, 5:30am UTC](https://techcommunity.softwareag.com/t/x-bridge-and-content-type/58344/1 "2001-05-03T05:30:20Z")

</div>

Is it possible to change the Content-Type of  
the document that X-Bridge returns to the client?  
  
So, if I want to render the document as HTML,  
can I ask X-Bridge to set the content type  
to “text/html”?  
  
I tried to do this using my (novice) knowledge  
of XSL in the response stylesheet, but nothing  
seemed to work.  
  
Thanks,  
Puny

---

<div class="post-metadata">

**Author:** ![Guest](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/guest/32/75_2.png) [@Guest](https://techcommunity.softwareag.com/u/Guest)\
**Post date:** [May 3, 2001, 5:49am UTC](https://techcommunity.softwareag.com/t/x-bridge-and-content-type/58344/2 "2001-05-03T05:49:14Z")

</div>

Hi Puny,  
  
I tried to set the content-type on the HttpResponse object within my [X-Bridge invoked] Servlet.  
  
Sadly, this also failed…  
  
Regards,  
Trevor.

---

<div class="post-metadata">

**Author:** ![Guest](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/guest/32/75_2.png) [@Guest](https://techcommunity.softwareag.com/u/Guest)\
**Post date:** [May 7, 2001, 3:06pm UTC](https://techcommunity.softwareag.com/t/x-bridge-and-content-type/58344/3 "2001-05-07T15:06:36Z")

</div>

I don’t know if it fixes your mime-type problem, but do you have a \<xsl:output method=“html”/\> statement in your stylesheet. See if this helps…  
  
Bye,  
  
Andreas

---

<div class="post-metadata">

**Author:** ![Guest](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/guest/32/75_2.png) [@Guest](https://techcommunity.softwareag.com/u/Guest)\
**Post date:** [May 9, 2001, 12:09am UTC](https://techcommunity.softwareag.com/t/x-bridge-and-content-type/58344/4 "2001-05-09T00:09:25Z")

</div>

Nice idea - but it didn’t work ☹  
  
We read the X-Bridge road map and it seems  
that access to HTTP headers will be provided  
in the next version.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:39pm UTC](https://techcommunity.softwareag.com/t/x-bridge-and-content-type/58344/5 "2021-04-02T14:39:11Z")

</div>


