CFHTTP Not Allowed?

hatton

Perch
I'm trying to add an RSS feed to my ColdFusion website and am running into an interesting error. The normal procedure to grab a feed is to perform a HTTP call to the server hosting the feed, parse the resulting file contents using CF and then loop through the resulting object.

Right now I am receiving the following error:
Error Occurred While Processing Request
Security: The requested template has been denied access to 216.167.96.124:80.
The following is the internal exception message: access denied (java.net.SocketPermission 216.167.96.124:80 connect,resolve)

ColdFusion cannot determine the line of the template that caused this error. This is often caused by an error in the exception handling subsystem.

This error is generated using the following code:

Code:
<cfhttp port="80" resolveurl="yes" url="http://216.167.96.124/arrl.rss"></cfhttp>
<cfset oHeadlines = XMLParse(cfhttp.FileContent)>

This *should* be a rather straight-forward setup, however in retrospect I wonder if the fact that CFExecute has been blocked (rightfully so) is having a negative effect on this issue as well.

Anyone run into this before?
 
Open a ticket asking 216.167.96.124:80 to be added as an allowed host/port

CFHTTP is not blocked. But any host you want to access needs to be authorised
 
Yash said:
Open a ticket asking 216.167.96.124:80 to be added as an allowed host/port

CFHTTP is not blocked. But any host you want to access needs to be authorised
As a follow up for anyone that comes across this thread, there are two things that need to be done to allow RSS or XML feeds to work with JodoHost -

The first is to open a ticket asking for the domain and port to be added as an allowed host / port as mentioned above.

The second thing to do is to manually open up the page that you are pulling, your browser will format the XML. Look for a !DOCTYPE line that points to a URL. If one exists then you will need that domain added to the allowed host list as well.

When you use the XMLParse() function in ColdFusion it will attempt to make a HTTP call to the DTD if that line exists. Since the DTD may not live at the same location as the RSS feed you will need both entries.
 
Back
Top