Guest User

Untitled

a guest
Feb 11th, 2019
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. <cfset sFilename = "C:999test4.txt">
  2.  
  3. <cffile action="read" file="#sFilename#" variable="fileRead">
  4.  
  5. <cfset oFileInfo = GetFileInfo("#sFilename#")>
  6.  
  7. <cfhttp url="localhost/Clarence/diff_elt_test_output.cfm"
  8. method="PUT"
  9.  
  10. username="******"
  11. password="******"
  12.  
  13. multipart="no"
  14.  
  15. result="oHttp">
  16.  
  17. <cfhttpparam type="header" name="Content-Type" value="text/plain" />
  18. <cfhttpparam type="header" name="Content-Length" value="#oFileInfo.Size#" />
  19.  
  20. <cfhttpparam type="body" value="#fileRead#"/>
  21. </cfhttp>
Add Comment
Please, Sign In to add comment