LWP problems



I'm trying to touch IBM from inside a proxy. My LWP code touches the proxy,
but does not authenticate with the proxy so I can go on to IBM. Does anyone
see my mistake?

Thanks

Mike

Here is the code:


#!/usr/bin/perl

# $Id$
# $Log$

# grab the machine type from 'lsattr -El sys0'
# grab the current microcode version depending on the command for that machine
# grab the latest microcode version for this box from:
# http://techsupport.services.ibm.com/server/mdownload/download.html
# complain if the microcode is not at the current version

use LWP::UserAgent;
use LWP::Debug qw(+);
use strict;

# globals
my $microcodeurl = 'http://techsupport.services.ibm.com/server/mdownload/download.html';

# get the machine type
my $cmd = 'lsattr -El sys0 | grep modelname';
open(IN, "$cmd |") or die "$0: cannot execute '$cmd': $!";
my $line = <IN>;
close(IN);
chomp($line);

# pull the microcode version from IBM
# and the command to get the currently installed microcode version
my $ua = LWP::UserAgent->new();
$ua->proxy('http', 'http://txisa002.ttiinc.com:8080');
my $req = HTTP::Request->new(GET => $microcodeurl);
my $user = 'domain\user';
my $pass = 'password';
$req->proxy_authorization_basic($user, $pass);
my $page = $ua->request($req)->as_string;
1;

.



Relevant Pages

  • LWP problems
    ... I'm trying to touch IBM from inside a proxy. ... My LWP code touches the proxy, ... # grab the current microcode version depending on the command for that machine ...
    (comp.lang.perl.misc)
  • Re: HASP/ASP JES/JES2/JES3
    ... > an IBM se or it could have been a joint effort. ... Memory in those days was ... between between integrated channel microcode and 370 microcode. ...
    (bit.listserv.ibm-main)
  • Re: EDS mainframe goes , crashes RBS cheque system
    ... An IBM Check ... It is not clear how microcode fits into this unless they are talking about ... For IBM-MAIN subscribe / signoff / archive access instructions, ... send email to listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO ...
    (bit.listserv.ibm-main)
  • Re: POWER6 on zSeries?
    ... At one time I recall seeing an official IBM statement ... > requirements for S/390 Architecture. ... high use kernel paths into microcode ... ... coming close to happening with high-end machines like 3033. ...
    (bit.listserv.ibm-main)
  • Re: z/Architecture design errors
    ... He didn't say anything about mainframe developers extensively writing and testing microcode instructions, but instead extensively writing and testing z-Architecture assembler code. ... Outside of IBM, microcode assemblers might be used in a limited educational setting in conjunction with emulated execution to demonstrate principles of microcode development - they would not be used to generate and modify microcode on an actual IBM mainframe processor. ...
    (bit.listserv.ibm-main)