Connecting a ZT411 to a Tomcat Print Server

// Expert user has replied.
M Michael Shields 3 months 2 weeks ago
71 1 0

We have a Web app which retrieves labels from our shipping partners and we are trying to connect it to our Zebra ZT411 so that we can print directly from the application in the cloud to our printer from the browser. We have been able to connect the printer to Zebra's demo server here (http://weblink.westeurope.cloudapp.azure.com/) but are having some trouble getting the self signed secure certificates to work. 

In particular I am looking for help to send the Multi Part Form commands that are described in this Printer Administration guide starting on page 61. https://www.zebra.com/content/dam/support-dam/en/documentation/unrestricted/guide/software/printsecure-administration-guide-en.pdf

I have attempted to send the code to retrieve the CSR (page 63 of the above guide) from the Z drive which should at least return a 404 error if it does not exist but I get no response. Is ZPL the correct format to send this code to the printer or is there another way? Below is the code I attempted to send in a zpl file.

{}--BOUNDARY

Content-Disposition: form-data; name="files";

filename="Z:CSR_WEBLINK1_CERT.CSR"; action="retrieve"

Content-Type: application/octet-stream

Content-Transfer-Encoding: binary

 

--BOUNDARY

Please Register or Login to post a reply

1 Replies

S Steven Si

The above MPF command to retrieve the CSR has syntax issues. Please use the following MPF command. The <CR><LF> represent a carriage return and a linefeed respectively at the end of each line.

{}--BOUNDARY<CR><LF>
Content-Disposition: form-data; name="files"; filename="Z:CSR_WEBLINK1_CERT.CSR"; action="retrieve"<CR><LF>
Content-Type: application/octet-stream<CR><LF>
Content-Transfer-Encoding: binary<CR><LF>
--BOUNDARY--<CR><LF>
CONTACT
Can’t find what you’re looking for?