Cfhttp method PUT?

Wonder if anyone has used cfhttp PUT method.

<cfhttp method=“PUT“ URL=“[http://localhost:/processor.cfm](http://localhost/processor.cfm)">
<cfhttpparam type=“header“ name="content-type" value="text/html">
<cfhttpparam type=“file“ name=“mytextfile“ file=“d:\mydir\mytxt.txt“>
</cfhttp>

Outcome:
Nothing happened. Am I missing something?

What do you mean exactly by “nothing happened”?

  • Your URL isn’t a korrekt URL. Looks like a kind of markdown link, and you have in one a port designator : without any port specified. That URL can’t work. Didn’t you get any error for this?
  • Do your server get the requests at all? Try other methods like get or post first. Check your logs. If it’s getting the requests, check your code.
  • Try a put method request with an alternative client (e.g. postman or isomnia)

My bad, this is one of these days, starting with an existing script file, and accidentially removed useful elements. Resolved. Also, let me add something for clarity on resolution, for CFHTTP attributes, URL for processing the request, Port for your server, and Result (to track the processing outcome).