Sagewire Logo

CFHTTP header trouble

3 Message(s) by 2 Author(s) originally posted in advanced cfml techniques


From: Gimmejazz56 Date:   Tuesday, October 16, 2007
Hello,

I'm trying to suppress the
<CFHTTPPARAM type="header" name="Request-number" value="1">
<CFHTTPPARAM type="header" name="Document-type" value="Request">
<CFHTTPPARAM type="header" name="Merchant-id" value="1111111">
<CFHTTPPARAM type="header" name="Trace-number"
value="#ATTRIBUTES.OrderID#">

<CFHTTPPARAM type="header" name="Accept" value="application/xml">
<CFHTTPPARAM type="header" name="Content-Type" value="application/OU812" >

</CFHTTP>
<CFDUMP var="#CFHTTP.FileContent#">

Response:
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<QuickResp>
<ProcStatus>05</ProcStatus>
<StatusMsg>OU812,TEXT/XML; CHARSET=UTF-8 isn't supported</StatusMsg>
</QuickResp>
</Response>


From: John-Norway Date:   Wednesday, October 24, 2007
Is it possible that you may be submitting special characters in the variables you send in the request?


From: Gimmejazz56 Date:   Wednesday, October 24, 2007
Mr Black gave me the answer.
I replaced
<CFHTTPPARAM type="xml" name="requestTrans" value="#transInfo#">
with
<CFHTTPPARAM type="body" value="#transInfo#">
and that resolved it.



Next Message: ColdFusion MX7 troubleshooting


Blogs related to CFHTTP header trouble

Re: Parsing an XML Feed
I've never had any trouble. Hope this helps. On 8/24/06, Ian Vaughan wrote: > How would I cache these xml feed requests, so it does not need to make a > request every time the page is called ? > > I have tried using > > > > But as the ...

Scalix 11 Beta Feedback :: RE: API returns messages compressed ...
I have commented out those lines temproary on our test server but it seems like thats not the issue, since ColdFusion (from Adobe, java based) still has trouble reading the responses. ("Connection Failure") ColdFusion can undrestand all ...


Programming | Sports | Autos

copyright 2006
Valid XHTML 1.0 Transitional