[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

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
2
Medium Priority
?
835 Views
Last Modified: 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.
0
Comment
Question by:paragonfoods
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 52

Accepted Solution

by:
_agx_ earned 2000 total points
ID: 39762678
Out of curiosity, have you tried using cfprint rather than cfhttp?

As far as direct connections, you could probably open a socket connection. It may need a few tweaks, but take a look at the easySocket() udf over at cflib.org

http://cflib.org/udf/easySocket
0
 

Author Comment

by:paragonfoods
ID: 39762710
cfprint is not going to work for my needs, but easySocket looks good.  Thanks!
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

While opting for any web-to-print solution, you need to discuss with your team and some of your end users and know their opinions about your decisions. In this article we list down some questions you need to ask yourself.
Instead of error trapping or hard-coding for non-updateable fields when using QODBC, let VBA automatically disable them when forms open. This way, users can view but not change the data. Part 1 explained how to use schema tables to do this. Part 2 h…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question