ZPL sending with iOS

// Expert user has replied.
Y Yanis Dalabiras 1 year 11 months ago
373 2 0

hello,
how can I send ZPL commands to the ZD410 printer via http request with curl option to print labels?

are there other ways to send ZPL commands to the printer?

thanks

Musti

Please Register or Login to post a reply

2 Replies

S Steven Si

There is a mini web server on each Zebra printer. The endpoint is http://printsIPAddress/pstprnt. If your printer's IP address is 192.168.1.2, the Curl to send the ZPL of the Hello World would look like below. Sending the following Curl will print a Hello World! label.

curl -v -H 'Content-Length: 42' \
     -H 'Content-Type: text/plain;charset=UTF-8' \
     -d '^XA^FO50,50^ADN,36,20^FDHello World!^FS^XZ' \
     http://192.168.1.2/pstprnt   

 

A Ali Korkmaz

Thank you very much. It worked.

CONTACT
Can’t find what you’re looking for?