I'm attempting to get the printer's status by issuing a HTTP POST in PowerShell:
$ZPL = '~HS'
Invoke-WebRequest -Uri 'http://192.168.1.209/pstprnt' -Method Post -Body $ZPL
While the response is 200, the body is empty.
Should this command return a response? If I send the same command via TCP, I do get a response.
1 Replies
Unfortunately, the HTTP POST (pstprnt) is a one way communication and does not catch and return a response from the printer. Therefore, you won't get a response when sending ~HS via the HTTP POST.