Throwing And Catching A File Using CFHttp For Both Actions

<!---
	Submit the file the CFHTTP_Catch.cfm file. Notice that we
	are sending the file via a CFHttpParam FILE tag. By using
	this file param, CFHTTP automatically sends all form
	fields as multi-part form data; therefore, we do NOT need
	to specify the "multipart='true'" CFHttp attribute.
--->
<cfhttp
	url="http://swoop/..../cfhttp_catch.cfm"
	method="POST"
	useragent="Mozilla/5.0 Gecko/20070309 Firefox/2.0.0.3"
	result="objHTTP">
 
	<!---
		Send along a file via the FORM post. This acts the same
		as a stanard form Input type="file" field and can be
		handled as such on the "Catch" page.
	--->
	<cfhttpparam
		type="FILE"
		name="file"
		file="#ExpandPath( './test.jpg' )#"
		/>
 
</cfhttp>
 
 
<cfoutput>
 
	<h4>
		CFHttp Post Result:
	</h4>
 
	<p>
		#objHTTP.FileContent#
	</p>
 
</cfoutput>

For Cut-and-Paste