ZPL sending with iOS


Audience
Tags

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

Submitted by SSi1 on November 17, 2022 Permalink

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