Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 124325
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T04:58:56+00:00 2026-05-11T04:58:56+00:00

I recently got a new printer (specifically a HP Photosmart C6380 if that helps)

  • 0

I recently got a new printer (specifically a HP Photosmart C6380 if that helps) that allows me to send text to port 9100 to print. Telnetting into it and typing text to print works fine, but I’m wondering if I could make a webpage using HTML and Javascript that can send text directly to it.

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.

So my question for you is am I able to send just the content of the POST request or strip the unneeded characters using only HTML and Javascript?

Note: The reason why it’s limited to HTML and Javascript is because I’m hoping that I can use this on an iPhone or iPod Touch.

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?

  • 1 1 Answer
  • 2 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T04:58:57+00:00Added an answer on May 11, 2026 at 4:58 am

    No, there’s no way to get rid of the HTTP headers in client-side JavaScript. For that, you need to set up a server-side script which will then make the actual connection to the printer port.

    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!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I recently got a shiny new development workstation. The only disadvantage of this is
I'm using Visual Studio 2008 Professional at work. Recently, I got a new workstation.
I recently got an email from a customer saying that they were getting errors
I recently got a new computer and forgot how to create a Release for
I recently got a new primary computer. On my old one, I was working
I've recently got a new Mac laptop and am running VS2010 in a Parallels
I am using emacs + slime for clojure development. Recently we got a new
I recently got projects that runs on Struts and I am expecting more JSP
I recently got a new workstation where I'm using Visual Studio 2008 Professional for
Recently I have got a new 22 monitor. Finally it's possible to keep all

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.