Rapaport Prices - with Coldfusion

Author: Jarod Knoten
Date: 11/12/2009
Purpose: Downloads csv files from rapnet, can be ran automatically as a scheduled task in coldfusion admin.

<!--- Set URL (must be HTTPS)--->
<cfset rapurl="URL goes here">

<!--- Set Authentication Variables --->
<cfset rapUsername = "Username goes here">
<cfset rapPassword = "Password goes here">

<!--- Set filename and path --->
<cfset rapFilename = "Filename goes here">
<cfset rapFilepath = "Filepath goes here">


<!--- HTTP request to technet --->
<cfhttp url="#rapURL#" method="POST" file="#rapFilename#" path="#rapFilepath#">
<cfhttpparam type="header" name="accept-encoding" value="no-compression" />
<cfhttpparam type="formField" name="username" value="#rapUsername#">
<cfhttpparam type="formField" name="password" value="#rapPassword#">