Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: printing to a local printer from IIS 7.5 and server 2008 r2 (HTTP)

by Anonymous Monk
on Mar 20, 2013 at 07:52 UTC ( #1024466=note: print w/replies, xml ) Need Help??


in reply to printing to a local printer from IIS 7.5 and server 2008 r2

The test script that I am using is

That script does not attempt to return a set of HTTP headers

You have Server error, see CGI Help Guide , Troubleshooting Perl CGI scripts

You need to return a set of headers , maybe  print "Content-Type: text/html\n\n";

more checklists brian's Guide to Solving Any Perl Problem, on learning CGI learn about the internet,Web Programming: For Beginners, to get an overall picture of how the internet works, how tcp/ip, sockets, html, ajax, all fit together.

  • Comment on Re: printing to a local printer from IIS 7.5 and server 2008 r2 (HTTP)
  • Download Code

Replies are listed 'Best First'.
Re^2: printing to a local printer from IIS 7.5 and server 2008 r2 (HTTP)
by blenkhn (Acolyte) on Mar 20, 2013 at 15:54 UTC
    Thanks very much for your reply. I had to take that out to get at the real error. It would display what I needed but not print anything.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1024466]
help
Chatterbox?
[hippo]: Anyone able to get to https://deps. cpantesters.org/? Not even getting a connection from here.
[choroba]: Down for everyone of just me
[shmem]: "Problem loading page" here
[marto]: seems down
[planetscape]: Able to ping but not connect with either Opera or Firefox
[thanos1983]: same here...
[choroba]: marto ;-)
[Discipulus]: after an error now is back
[shmem]: looks like a 302 loop - "The document has moved here"
[Discipulus]: ..but only http not https

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (13)
As of 2018-02-20 11:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (271 votes). Check out past polls.

    Notices?