I'm currently using the code from the article Cross Site Printing (pdf), but the downside is that when it prints out it shows the entire POST request and not just the text.
Edit: It appears that there's no way to get rid of the HTTP headers, so now my question is can I craft a custom POST request that will minimize on what is sent in the header? For example, can I not send the user agent since the printer doesn't care what the user agent is?
Edit: The server-side script won't send a HTTP request to your printer: It should open a new socket and thus can fully controle what gets sent!
You can HTTP-Request from within JS, so you always have an HTTP-Header, regardless of the port to which you are sending. So the answer is: no.
©2020 All rights reserved.