cfhttp

How to POST JSON Data to Remote API Using Coldfusion CFHTTP

假如想象 提交于 2019-11-30 05:00:58
I'm sure that I'm completely botching this up but I got this far with the help of fellow Stack Overflow users, so thanks thus far. I need to POST JSON data to a remote API. Obviously I can't use jQuery due to SOP issues, and the remote API does not support JSONP. I also don't want to have to use any type of proxy as to get around the SOP limitations. Per the API docs ( http://myemma.com/api-docs/ ), this is the formatting of the data they expect (request and response data is transferred as JSON): POST https://api.e2ma.net//123/members/add { "fields": { "first_name": "myFirstName" }, "email":

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

大兔子大兔子 提交于 2019-11-29 10:26:00
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 Class 3 Extended Validation certs. Has anybody come across this before and found a solution? Barry Jordan

How to POST JSON Data to Remote API Using Coldfusion CFHTTP

ぃ、小莉子 提交于 2019-11-29 02:42:40
问题 I'm sure that I'm completely botching this up but I got this far with the help of fellow Stack Overflow users, so thanks thus far. I need to POST JSON data to a remote API. Obviously I can't use jQuery due to SOP issues, and the remote API does not support JSONP. I also don't want to have to use any type of proxy as to get around the SOP limitations. Per the API docs (http://myemma.com/api-docs/), this is the formatting of the data they expect (request and response data is transferred as JSON

Convert an image from CFHTTP filecontent to binary data with Coldfusion

喜你入骨 提交于 2019-11-28 01:25:47
I'm trying to convert an image (jpg) loaded via cfhttp to binary data. I can't use cffile action="readBinary" as it is not a local file. Here's how I handle this, and I use this to grab and process hundreds of images a day with ColdFusion 8. <cfhttp timeout="45" throwonerror="false" url="http://domain/image.jpg" method="get" useragent="Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12" getasbinary="yes" result="local.objGet" > <cfset local.objImage = ImageNew(local.objGet.FileContent)> Once you have the image object you can then do whatever you want

ColdFusion https connection failure

和自甴很熟 提交于 2019-11-26 22:58:23
I have an API that runs fine on one of my two web servers but not on the other one or on my local machine, instead I get a connection failure when I send https requests as part the login process. The requests are very simple and works without a problem on one of the three servers it is being run on. The first one is as follows: <cfhttp url="https://accounts.ea.com/connect/auth?response_type=code&client_id=EASFC-web&state=59c5a8f1c4e7a991c1da0b54504c38e45f4d8d78&redirect_uri=http%3A%2F%2Fwww.easports.com%2Ffifa%2Ffootball-club%2Flogin_check&locale=uk&scope=basic.identity+basic.persona+signin

ColdFusion https connection failure

你说的曾经没有我的故事 提交于 2019-11-26 09:12:02
问题 I have an API that runs fine on one of my two web servers but not on the other one or on my local machine, instead I get a connection failure when I send https requests as part the login process. The requests are very simple and works without a problem on one of the three servers it is being run on. The first one is as follows: <cfhttp url=\"https://accounts.ea.com/connect/auth?response_type=code&client_id=EASFC-web&state=59c5a8f1c4e7a991c1da0b54504c38e45f4d8d78&redirect_uri=http%3A%2F%2Fwww