Re: HTTP::Daemon -->Send client autoproxy?

2002-08-26 Thread $Bill Luebkert
Bullock, Howard A. wrote: > I have just looked through the documentation for HTTP and LWP but can not > find a way to interrogate the client for version etc. I would think that > that data would be in the header of the request. > > use HTTP::Daemon; > use HTTP::Status; > my $d = HTTP::Daemon->new

Re: HTTP::Daemon -->Send client autoproxy?

2002-08-26 Thread Ron Grabowski
> How do I get the details of "HTTP::Headers=HASH(0x1c5d150)"? What does Data::Dumper say? use Data::Dumper; print Dumper $r->headers; Or just look at the keys: foreach my $key ( keys %{$r->headers} ) { print "$key => ", $r->headers->{$key}, "\n"; } __

RE: HTTP::Daemon -->Send client autoproxy?

2002-08-26 Thread Bullock, Howard A.
Got it! while (my $r = $c->get_request) { print "protocol: " . $r->protocol . "\n"; print "headers: " . $r->headers->{'user-agent'} . "\n"; print "headers: " . $r->headers->{'accept-language'} . "\n"; print "headers: " . $r->headers->{'connection'} . "\n";

RE: HTTP::Daemon -->Send client autoproxy?

2002-08-26 Thread Bullock, Howard A.
I have just looked through the documentation for HTTP and LWP but can not find a way to interrogate the client for version etc. I would think that that data would be in the header of the request. use HTTP::Daemon; use HTTP::Status; my $d = HTTP::Daemon->new( LocalPort => 8080); print "Please

Re: HTTP::Daemon -->Send client autoproxy?

2002-08-26 Thread $Bill Luebkert
Bullock, Howard A. wrote: > I am writing in the hope that someone can give me some pointers, code > snippets, or constructive discussion. My goal is to build an HTTP Win32 > single function service that will monitor a specified port for one URL > request, gather client/browser info, build and retu

HTTP::Daemon -->Send client autoproxy?

2002-08-26 Thread Bullock, Howard A.
I am writing in the hope that someone can give me some pointers, code snippets, or constructive discussion. My goal is to build an HTTP Win32 single function service that will monitor a specified port for one URL request, gather client/browser info, build and return a proxy configuration script t

NT Event Log monitoring script

2002-08-26 Thread Lewis, Chris
I've gotten the attached file to work successfully on my development machine, however after attempting to run it on another of our environments, I get the error below during compilation... I'm using the same version of perl, with the same @LIB paths... Any ideas? Thanks, Chris D:\AribaSpst\Buy

Re: Reading/formatting binary data from file ...

2002-08-26 Thread $Bill Luebkert
$Bill Luebkert wrote: > Lawrence Lordanich (x11486) wrote: > >> I think I have a real problem here. >> Does Perl provide a way to work with signed ints? Here is my code: >> >> >>open( BIN, "< $file" ); binmode BIN; >>while( read(BIN, $buf, 16) ) >> { >> >> my @arr = unpack( 'C

Re: LWP and ASP Pages

2002-08-26 Thread Carl Jolley
On Mon, 26 Aug 2002 [EMAIL PROTECTED] wrote: > I'm trying to test to make sure my web site is up by connecting to the > admin web page of my application. The admin web page is an ASP page and > whenever I set it up using: > > use HTTP::Request; > use LWP::UserAgent; > > $filename = D:\\temp\\ms

Re: Reading/formatting binary data from file ...

2002-08-26 Thread $Bill Luebkert
Lawrence Lordanich (x11486) wrote: > I think I have a real problem here. > Does Perl provide a way to work with signed ints? Here is my code: > > >open( BIN, "< $file" ); binmode BIN; >while( read(BIN, $buf, 16) ) > { > > my @arr = unpack( '', $buf ); > >

Reading/formatting binary data from file ...

2002-08-26 Thread Lawrence Lordanich \(x11486\)
I think I have a real problem here. Does Perl provide a way to work with signed ints? Here is my code:    open( BIN, "< $file" ); binmode BIN;    while( read(BIN, $buf, 16) )     { my @arr = unpack( '', $buf );   my $val1 = ($arr[0] << 8) | $arr[1]; $val2

Re: screen saver -- how to trip, trigger or kill

2002-08-26 Thread Michael D. Smith
Many of the MS Windows screen savers have an option to specify a corner of the screen that you can leave the mouse pointer in, and the screen saver will never come on. Click the "settings" button, "General" tab. I just tried it on mine. Doesn't seem to work. Wonderful, advise that doesn't wor

Re: Installing PDF-API2?

2002-08-26 Thread Sisyphus
- Original Message - From: "Morse, Richard E." <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 27, 2002 3:34 AM Subject: Installing PDF-API2? > Hi! I'm trying to install the PDF-API2 ppm (btw: will that be updated > soon?), but I get an error: "no suitable installatio

Re: screen saver -- how to trip, trigger or kill

2002-08-26 Thread Johan Lindstrom
At 15:22 2002-08-26 -0400, Gan Uesli Starling wrote: >REASON: Have a MySQL DB & a Perl script which querries >it ever 2 minutes for new entry. When it sees a new >entry, Perl calls up MSIE on Win95 to display said >new entry. But alas, all is wasted if the screen saver >is hiding it. Outside of t

screen saver -- how to trip, trigger or kill

2002-08-26 Thread Gan Uesli Starling
I need a Perl sub to trigger the screen saver on Win32. I don't need to kill the screen saver, or turn it off, or mess with the Registry. I only want it to work as if the mouse were moved, or a key were pressed, so that the screen saver goes away for its regular interval. REASON: Have a MySQL DB

Illicit unsubscriptions attempts?

2002-08-26 Thread Martin Moss
All, Today I received unsubscription emails from activestate from all my subscribed mailing lists. I just wondered if anybody else has had these in the past. Wondered if it was a glitch or if somebody is playing silly beggars, Regards Marty ___ Perl-

Installing PDF-API2?

2002-08-26 Thread Morse, Richard E.
Hi! I'm trying to install the PDF-API2 ppm (btw: will that be updated soon?), but I get an error: "no suitable installation target found for package PDF-API2". What does this mean? Thanks, Ricky - Richard MorseSystem Admin

Re: easy user input interface into Perl

2002-08-26 Thread Ron Grabowski
> > the "real/regular" program will then use for input. It asks the user > > only two short text questions. Of course any of us would be quite happy > > You could check out Win32::GUI (see HTML under .../html/lib/win32) or maybe > use Tk as an alternative GUI interface - except it may not be ins

Re: LWP and ASP Pages

2002-08-26 Thread Ron Grabowski
[EMAIL PROTECTED] wrote: > > I'm trying to test to make sure my web site is up by connecting to the > admin web page of my application. The admin web page is an ASP page and > whenever I set it up using: > > use HTTP::Request; > use LWP::UserAgent; > > $filename = D:\\temp\\msi.html"; > > $u

Re: LWP and ASP Pages

2002-08-26 Thread Zac Morris \(personal\)
One thing to check is does the ASP have any "browser type" logic in it? You can manually set the "browser type" for the LWP but it doesn't "default" to a Netscape or IE types. If the ASP has specific logic for version 4+ browsers then it may not be setup to handle "non-4+" browsers. -Zac

RE: Creating a PPD

2002-08-26 Thread Morgan, Steve H.
Chad, Believe it or not, including the HTML doc is quite easy but not well documented. All you have to do is place it in the correct directory before you create your tar file. You can even use pod style docs, inherit the Active State Style sheets and create the html file from your makefile.pl. I

LWP and ASP Pages

2002-08-26 Thread Stanley . G . Martin
I'm trying to test to make sure my web site is up by connecting to the admin web page of my application. The admin web page is an ASP page and whenever I set it up using: use HTTP::Request; use LWP::UserAgent; $filename = D:\\temp\\msi.html"; $ua = LWP::UserAgent->new; $url = "http://webserve

RE: [PMX:#] Re: easy user input interface into Perl

2002-08-26 Thread Joseph Youngquist
Well, there is the Win32::Console that you have with AS Perl.  Just about everything you would want to do is there.  Building a Console wrapper around Win32::Console to single out what functions you will be using often (and for building basic interfaces) would be a day project...   HTH Joe  

RE: Proposal - Win32::ProcInfo becomes Win32::Process::Info

2002-08-26 Thread Joseph Youngquist
Personally, I like Process::Info. Clear and to the point as to what it does. Just my two copper into the basket Joe -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Thomas R Wyant_III Sent: Monday, August 26, 2002 7:56 AM To: [EMAIL PROTECTED] Subject: P