camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "E. A. English" <eengl...@ikindi.com>
Subject RE: Http4 Set Header Content-Type not passing through to the HTTP Request
Date Fri, 24 Jan 2014 16:20:09 GMT

Hi Ravi, 

Regarding your response below -

The question is: 

Why does header 

     Content-Type=application/json 

change to

     Content-Type=text/xml 

??? 

We need for "Content-Type=application/json" to be propragated to the
response. It seems to be somehow filtered, or otherwise changed to
"Content-Type=text/xml". 
How can this be accomplished?

Thanks very much for any help/suggestions, 
chasse

Your second logging will log headers from the response sent by the http4
invocation. I am able to see the values and these are not blanked out. 
 [mel-1) thread #0 - timer://foo] COMBEFORE DEBUG Exchange[ExchangePattern:
InOnly, Headers: {breadcrumbId=ID-LT005383-64443-1390555622180-0-1,
CamelHttpCharacterEncoding=UTF-8, Content-Type=application/json,
firedTime=Fri Jan 24 14:57:04 IST 2014}, BodyType: null, Body: [Body is
null]] [mel-1) thread #0 - timer://foo] COMAFTER DEBUG
Exchange[ExchangePattern: InOnly, Headers: {Age=0,
breadcrumbId=ID-LT005383-64443-1390555622180-0-1, Cache-Control=private,
CamelHttpCharacterEncoding=UTF-8, CamelHttpResponseCode=200,
Connection=keep-alive, Content-Length=132, Content-Type=text/xml;
charset=utf-8, Date=Fri, 24 Jan 2014 09:27:05 GMT, firedTime=Fri Jan 24
14:57:04 IST 2014, P3P=policyref="http://info.yahoo.com/w3c/p3p.xml",
CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi
SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA
PRE LOC GOV", Server=ATS, Vary=Accept-Encoding, Via=http/1.1
fts115.flickr.bf1.yahoo.com (ApacheTrafficServer/4.0.1 [cMsSf ]), http/1.1
r02.ycpi.inc.yahoo.net (ApacheTrafficServer/4.0.2 [cMsSf ]),
X-Served-By=www222.flickr.bf1.yahoo.com}, BodyType:
org.apache.camel.converter.stream.CachedOutputStream.WrappedInputStream,
Body: [Body is instance of java.io.InputStream]] 





--
View this message in context: http://camel.465427.n5.nabble.com/Http4-Set-Header-Content-Type-not-passing-through-to-the-HTTP-Request-tp5746414p5746453.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message