Questions tagged [cfhttpparam]

15 questions
4
votes
1 answer

Difference between header and cookie for cfhttpparam type

I am working on a ColdFusion app that authenticates to SharePoint Online and pulls some files using SharePoint's REST API as described in http://paulryan.com.au/2014/spo-remote-authentication-rest/ When I try to obtain the FormDigestValue by posting…
gabriel
  • 326
  • 1
  • 2
  • 12
3
votes
1 answer

How to send header info in cfhttpparam

I have been given the following directions to pull a JSON list of data from a webservice. GET /criminal_api/1.0/service/requests HTTP Header: Authorization: Bearer 6EDC52118E164AE659EA2C772F3B9804 The following values in the header Bearer…
Denoteone
  • 4,043
  • 21
  • 96
  • 150
2
votes
1 answer

cfhttp and cfhttpparam in ColdFusion

I have some XMl data, I want to use the XML data to be posted to a scheduler job so using cfhttp and cfhttpparam. But for reason after running this code I was not able to schedule a job in one of my site. Tried all the options with formfields, url…
user3440782
  • 144
  • 1
  • 14
2
votes
1 answer

to download a remote .csv file in ColdFusion

I'm trying to download a .csv file on a remote server location using ColdFusion (version 2016). I used the cfhttp tag to perform this operation but I keep getting the following error: 401 UNAUTHORIZED I checked with the server admin of the remote…
Roger Dodger
  • 927
  • 2
  • 16
  • 37
2
votes
1 answer

ColdFusion CFHTTPPARAM Content-Type?

I am attempting to upload a file to the dropbox api using cfhttp. I am getting an error from Dropbox stating the Content-Type is incorrect: Bad HTTP "Content-Type" header: "application/octet-stream,multipart/form-data; …
kpup5386
  • 31
  • 4
2
votes
0 answers

Visa Payment Gateway API in ColdFusion

I have a Visa Payment Gateway example in PHP: $authString = $userId.":".$password; $authStringBytes = utf8_encode($authString); $authloginString = base64_encode($authStringBytes); $authHeader = "Authorization:Basic ".$authloginString; echo…
cfprabhu
  • 5,267
  • 2
  • 21
  • 30
1
vote
0 answers

CFHTTP and the differences in OAuth2.0 POST login methods

I'm constantly doing login POSTs to various APIs using Coldfusion 2016. No matter how specific the API documentation seems to be (with CURL and HTTPie examples) it always seems to be a trial and error process to work out how to pass the required…
1
vote
1 answer

Coldfusion cfhttp multipartType - How do I send JSON and file in same request?

I'm up against an API that has very sparse documentation. I've tried everything (more below) but the end result is a response from the 3rd party server: The given path's format is not supported. Here are my requirements for this endpoint (POST): A…
jyoseph
  • 5,435
  • 9
  • 45
  • 64
1
vote
1 answer

Setting User Agent on ColdFusion 2016

I am running ColdFusion 2016 developer edition. I am using cfhttp to test some settings on a remote Apache web server. Is there a way to set the User Agent? The default seems to be set to ColdFusion. When I use cfhttpparam to try to set a new…
PeterKA
  • 24,158
  • 5
  • 26
  • 48
1
vote
0 answers

cfhttp curl and Zendesk API

I'm trying to authenticate with the Zendesk API using CF. I've been able to do it successfully via curl. Now I'm trying to figure out where to place the parameters using so I can authenticate and create a user. curl -v -u…
user125264
  • 1,809
  • 2
  • 27
  • 54
0
votes
0 answers

ERROR CODE:10 email not send in cold fusion

No Account or Server API tokens were supplied in the HTTP headers. Please add a header for either X-Postmark-Server-Token or X-Postmark-Account-Token. i'm trying this code but get above error! cfset emailSettings = { to =…
0
votes
1 answer

Problems in attaching a PaymentMethod to a Customer using Stripe API and cfhttp

Following the Stripe documentation, which uses curl, I have tried the code:
Gnosis
  • 1
  • 1
0
votes
1 answer

Problems passing id values to Stripe API objects using cfhttp

I am able to pass field values to Stripe's Customer object using the code
Gnosis
  • 1
  • 1
0
votes
1 answer

Initating a Trustpilot invitation using Trustpilot API on Coldfusion

I'm trying to write a web application to send automated Trustpilot invitations, however, when trying to submit the data in the 2nd CFHTTP to process the invition every "type" option in the CFHTTPPARAM returns a "Unsupported media type" error:
Sam Allen
  • 589
  • 4
  • 6
  • 16
0
votes
2 answers

ColdFusion Rest API to SCOUT - Content-Type: application/vnd.api+json

I am attempting to run a simple REST api with ColdFusion and receiving same error regardless of attempt. The call works fine in Postman with the 4 params. But cant recreate in ColdFusion CFHTTP.
Torsten
  • 29
  • 3