How can I use Coldfusion to send RAW data to an IP address and port and then close the connection?
Posted on 2014-01-07
I have a zebra printer that listens on port 9100. I have used cfhttp to push ZPL content to that device with success (label prints!), but there seems to be an issue with the request lingering. I can set a timeout on the cfhttp request, but that doesn't seem to fix the timeout on the printer. I would like to terminate the connection programmatically without altering the printer's default settings. I have tried <cfhttpparam type="Header" name="Connection" value="close" />, but that didn't work either. Any suggestions are appreciated.