有人可以提供有关如何将此curl http post命令转换为cfhttp(冷融合)post命令的帮助。
当前,此命令使用 curl :
curl.exe -k -w %%{http_code} -H "Content-Type:text/plain" -u f7c1b455-9128-4768-aaaa-3d5cb0e79c82:l3tm31n --data-binary @C:\temp\vhs.students.txt https://server1.ctdlc.org/webapps/bb-data-integration-flatfile-BBLEARN/endpoint/person/store
但是我需要将其转换为使用冷聚变。 下面的命令将执行,但似乎正在更改文件的内容或文件未到达目标位置。任何帮助表示赞赏。
cfhttp method =“ post” url =“ https://bbtest5.ctdlc.org/webapps/bb-data-integration-flatfile-BBLEARN/endpoint/person/store” username =“ f7c1b455-9128-4768-a7ef-3d5cb0e79c82” password =“ password”> cfhttpparam type =“ header” name =“ Content-Type” value =“ text / plain”> cfhttpparam type =“ file” file =“ G:\ CF11webnoaccess \ ctvhs \ blackboard \ vhs.students.txt” name =“ vhs.students.txt”>