Issue when printing via HTTP POST

R Reed Molbak 3 years 10 months ago
1179 2 0

Hi there!
 
I'm working on printing to a Zebra printer via HTTP POST, following the guidelines in https://developer.zebra.com/community/technologies/printers/label-print……. Thanks for the helpful post! I'm using the Python requests library to send a POST request to the printer directly (handling this on the server side to avoid the CORS issue), and it's mostly working as expected.
 
However, I'm running into an issue when specifying a port in the URL. Everything works well if I send a request to e.g. http://10.0.1.237/pstprnt -- but when I try sending a request to http://10.0.1.237:9100/pstprnt, the printer still prints the label successfully, but the request never returns/terminates and hangs indefinitely (unless I force a timeout limit). Is this an issue anyone has seen before?
 
Thank you for your help!

Please Register or Login to post a reply

2 Replies

D Diego Maia

I know this post is ancient, but I am having the same issue.
Does anyone know how to solve it?

a andrew knasinski

Port 9100 is for raw ZPL data, not HTTP post requests

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