cfhttp

How to Read Multipart Response in ColdFusion

孤者浪人 提交于 2020-02-29 07:08:47
问题 I am doing a CFHTTP post to a web service that is returning two parts (multipart), a XML and PDF. I am looking to get only the PDF. My cfhttp.filecontent is a java.io.ByteArrayOutputStream type. When I do a toString() I get the following Part 1 Content-Type: application/xop+xml; type="text/xml"; charset=utf-8 Content-Transfer-Encoding: 8bit Part 2 Content-Type: application/pdf Content-Transfer-Encoding: binary I get the response in cfhttp.fileContent and the data looks like the following -

ColdFusion CFHTTP I/O Exception: peer not authenticated - even after adding certs to Keystore

淺唱寂寞╮ 提交于 2020-01-20 05:59:24
问题 I'm currently working with a payment processor. I can browse to the payment URL from our server, so it's not a firewall issue, but when I try to use CFHTTP I get a I/O Exception: peer not authenticated. I've downloaded and installed their latest security cert into cacerts keystore and restarted CF and am still getting the same error. Not only have I installed the providers cert, but also the 2 other Verisign certificate authority certs in the certificate chain. The cert is one of the newer

Coldfusion: CFHTTP with SSL encrypted Page (https://) - got an error

孤街浪徒 提交于 2020-01-15 07:07:27
问题 I'm making an cfhttp to connect to an encrypted page. Seems to work fine for some sites. I/O Exception: Name in certificate `pro.test.com' does not match host name `go.test.com' Is there a workaround to trust this certificate even if the host name doesn't match? 回答1: Think this is more Java question, and workaround should be affecting the JRE. Not sure if this will work in your case, but possible solution is to import this certificate into the JRE keystore. Generic description can be found at

client cert and clientcertpassword in cfhttp

こ雲淡風輕ζ 提交于 2020-01-06 15:12:59
问题 Recently I am done with the SSL certification installation procedure in the Coldfusion Truststore, I'm getting Attribute Validation error now which clearly states that I need to have cfhttp in my code. I understood that. So,I'll have to use cfhttp something like the following: method = "post", clientCert = ?? and clientCetPassword = ?? result = "xyz" I came across some posts (forums.adobe.com/message/800318) and there they have mentioned that clientcert should include file with format, .pkcs

How to make HTTP call with action=PATCH using CFHTTP ( ColdFusion 10 )

拥有回忆 提交于 2020-01-04 04:10:10
问题 I was integrating a REST API of iCIMS and found some of the REST API calls need the http verb PATCH. However, it seems ColdFusion 10 doesn't support that. Is there any way around this? 回答1: This was not added until ColdFusion 11 update 3. Most API services allow you to use POST instead of PATCH. From the docs for iCIMS it appears they accept either POST or PATCH as well. 回答2: Working with iCIMS API also here, but on CF 9, so no support for PATCH. But I did find that you can do a POST and then

View Raw HTML of CFHTTP call

早过忘川 提交于 2020-01-03 16:52:41
问题 Is there a way to output the raw html of a CFHTTP call? I am trying to see how some of the header authentication information is coming across. I am open to browser plugins or code updates whichever helps me see what is going on during the cfhttp call. So for example: <cfhttp method="get" url="https://test-ows01.mywebsite.com/criminal_api//1.0/service/requests" result="orderList"> <cfhttpparam type="HEADER" name="Authorization" value="Basic #ToBase64("bearer:4EC8B09D3F911764B1DCD3EFA38DFB31")#

CFHTTP issue with SSL - turn off security on cfhttp?

徘徊边缘 提交于 2019-12-25 03:25:01
问题 I've been having a pretty fun time trying to get this request to work. I've been doing a <cfhttp method="get"...> request to Facebook for some time without a problem. The request grabs an RSS feed so we can display it on our site. Unfortunately, someone recently noticed it stopped working. The only thing I can think of that could be causing the problem is the URL in my system is http://www.facebook.com... , but is being redirected to secure ( https://www.facebook.com... ). So I've tried

Issue with PUT request in ColdFusion 10

流过昼夜 提交于 2019-12-24 03:21:02
问题 While working with a API , I need to make a PUT request to a URL along with some parameters needs to be passed as POST parameter. Locally I have created 2 files calling.cfm and caller.cfm to test cfhttp with PUT request. But each time it is throwing error The request has exceeded the allowable time limit Tag: cfhttp caller.cfm <cfhttp url="http://cflocal.com/jquerySliderApp/calling.cfm" method="put"> <cfhttpparam type="header" name="Content-Type" value="application/x-www-form- urlencoded;

CFHTTP: first request fast, following slow

妖精的绣舞 提交于 2019-12-22 04:56:07
问题 I'm having a lot of trouble with CF10's CFHTTP at the moment. First, my test script: <CFSET results = arraynew(1) /> <CFLOOP from="1" to="10" index="idx"> <CFSET timer_start = getTickCount() /> <CFHTTP url="https://www.google.de" method="get" result="test" /> <CFSET arrayappend(results, (getTickCount()-timer_start)/1000 & " s") /> </CFLOOP> <CFDUMP var="#results#" /> 10 CFHTTP calls in a row, the time they take gets pushed to an array; that's all. Results of our CF9 server: Results of our

Scheduled Tasks not running - Coldfusion Server Administration

ε祈祈猫儿з 提交于 2019-12-20 01:41:13
问题 I have a series of scheduled tasks that all run at various times of the day. Since the migration from Coldfusion version 7 to 10, these tasks have stopped running. When I check the box, that outputs the results to a file, I get a text file that says nothing more than "Connection Failure". I have tried everything imaginable regarding the username and password for the task. It makes no difference. When I run the CFM page in my browser, the page works correctly and generates an email just like