cfhttp - get method
employee2.csv
EmpID, FirstName, LastName
1, Jenny, Jones
2, Mona, Lisa
3, Faria, Ruma
4, Suria, Sen
cfhttpGetMethod.cfm
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>cfhttp: how to use get method in cfhttp tag in coldfusion</title>
</head>
<body>
<h2 style="color:DarkSeaGreen; font-style:italic">cfhttp tag example: how to use get method</h2>
<hr width="425" align="left" color="DarkSeaGreen" />
<br />
<cfhttp
method="get"
url="http://localhost:8500/cfexample/employee2.csv"
name="EmployeeList"
>
</cfhttp>
<table border="1" cellpadding="5" cellspacing="0" bordercolor="CornFlowerBlue">
<tr bgcolor="DodgerBlue" style="color:Snow; font-weight:bold">
<td>
Employee ID
</td>
<td>
First Name
</td>
<td>
Last Name
</td>
</tr>
<cfoutput query="EmployeeList">
<tr bgcolor="Snow" style="color:RoyalBlue; font-weight:normal">
<td>
#EmpID#
</td>
<td>
#FirstName#
</td>
<td>
#LastName#
</td>
</tr>
</cfoutput>
</table>
</body>
</html>