cfhttp

Specifying cfhttp referring IP address on shared server

I'm using CFHTTP to post data to my payment gateway (Protx). Protx requires that I whitelist the IP that will send this request. I am hosted on a shared server running Windows 2008. This morning, my hosting company assigned a new IP to this server for a customer who required an SSL certificate. Since then, my CFHTTP post appears to be...

ColdFusion CFHTTP Post is doing a second GET request right after

I am using ColdFusion 8. I'm doing a CFHTTP Post to a remote server. The remote site has looked at their logs and they say my code is doing the POST, and then immediately doing a 2nd GET request. Here is my code (the URL has been changed): <cfhttp url="https://www.theurlofthesite.com" method="POST" port="443" resolveurl="yes" redirec...

ColdFusion CFHTTP Post to remote form does not return the results page, it just returns the input form

I am using ColdFusion 8. I am trying to use CFHTTP Post to submit the form at this page without a user having to enter the number and click Submit. https://testefile.boe.ca.gov/boewebservices/verification.jsp?action=SALES I've done with before with other forms, it's usually not a problem. Here's my code: <cfhttp url="https://teste...

CFNetwork HTTP timeout?

I am looking for a way to add a timeout to a CFHTTP request. It seems like there should be a feature of the CFHTTPMessage or the CFReadStream object, but I can't find it. Do I have to roll my own timer on the run loop or something? (if so, any code for this?) Thanks! ...

CFHTTP running longer than Timeout specified

I'm using ColdFusion 5 and specifying a timeout=2 on the CFHTTP tag. But I've seen the CFHTTP take much longer, sometimes as much as 8 seconds. I thought the timeout parameter was the max time the CFHTTP would execute. Has anyone seen this before? ...

Convert an image from CFHTTP filecontent to binary data with Coldfusion

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. ...

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

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...

get the file size of a CFHTTPStream

Hi, How to get a file size of a CFHTTPStream. Suppose a file called "http://testserver.com/test.jpg " is available to read. Here I need to get the file size "test.jpg", this I need to display progress while using CFReadStreamRead. Or in other words I need how many bytes are available in the server before the start of the read process. ...

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

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? ...

cfhttp dns resolution

i'm trying to get CFHTTP to talk to a domain that i have created for testing purposes on my test server. the address of the domain is "mydomain.example.com". everytime i try to connect using cfhttp i get an error stating: Your requested host "mydomain.example.com" could not be resolved by DNS. i have already added the entry in the win...

using cfhttp in multiple files taking too much time

I don't know if its possible but just want to ask if we can cfhttp or any other thing to read selected amount of data instead of putting whole file in CFHTTP.FileContent. I am using cfhttp and want to read only last two lines from a remote xml files(about 20 of them) and read middle two lines from some text files (about 7 of them). Is t...

Download file in coldfusion and read its content

cfhttp with a get to download the files. Does anyone have an example of cfhttp working? Are there special settings that need to be set up on the server side to get this tag to work. When I try the following code: <CFHTTP METHOD = "get" URL="http://data.bls.gov/PDQ/servlet/SurveyOutputServlet?series_id=LNU04032231&amp;years_o...

How to emulate a real http request via cfhttp?

Hi, I need to emulate a real http request via cfhttp. I was getting rss feed with ColdFusion, but tonight they started to block my request and send an index page in response instead of rss fead. I added useragent for cfhttp, but it doesn't help. Opera, Firefox and Chrome open feed correctly from the same computer. ...

CFHTTP Encoding Problem

I am trying to pull a page for parsing information out of it using cfhttp. The page headers that I am calling are: Content-Encoding: gzip Connection: Keep-Alive Content-Length: 19066 Server: IBM_HTTP_Server Vary: Accept-Encoding, User-Agent Content-Language: en-US Cache-Control: no-cache="set-cookie, ...

POST an xml API call (for Intuit) using Coldfusion

UPDATE: I managed to get this thing working! Turns out, you NEED to send a secure ticket with the call to get a proper response. I have no idea why it worked in Poster without it. There are a couple other parameters that are required which ColdFusion apparently doesn't send by default. Here is a working call: <!---MyTicketValue is sen...

webservice over HTTPS with self-signed cert in ColdFusion?

How to enable webservice call over HTTPS with self-signed cert in ColdFusion 9? According to the doc, <cfhttp> should work, but how about <cfinvoke>? If I use cfhttp, do I still need to install the cert as outlined here? http://kb2.adobe.com/cps/400/kb400977.html I tried simply using https in cfinvoke, I got SSLPeerUnverifiedException...

Create Wufoo webhook with PUT request in ColdFusion

Hello, I'm having troubles with building correct PUT request to the Wufoo. In all my attempts I see the same error: 404 A WebHook must contain a url parameter. Here is the version with JSON data type: <cfset local.action = "forms/#local.formHash#/webhooks.json" /> <cfset local.request = {"url" : local.webHookURL, "handshakeKey" : l...