Get a response from a HTTP POST (~HS)?

// Expert user has replied.
C C B 1 month 1 week ago
53 1 0

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.

Please Register or Login to post a reply

1 Replies

S Steven Si

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.

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