06-23-2017
8 More Discussions You Might Find Interesting
1. AIX
http://homepage.virgin.net/johnc.king/files/aixdoc/aixdoc.pdf
this is taken from
http://watkiss.members.easyspace.com/computers/unix/aix/aixdoc.html
it is 372 pages long. (0 Replies)
Discussion started by: Optimus_P
0 Replies
2. Programming
I am looking for the above
Can anyone point me to a reliable product, with available
support in the forseeable future ?
Seeker (0 Replies)
Discussion started by: Seeker
0 Replies
3. AIX
I have two drawers with two BD servers and App servers of RS/6000 630 model being installed in the bank.. We don't have any specialists for AIX.. And I'm having problems with setting up the network.. Actually I'm so much fed up with that darn FC switches.. I did not manage to make so that the... (7 Replies)
Discussion started by: dilshik
7 Replies
4. AIX
Hi everyone,
I need to write some AIX scripts (ksh?), kind of fast so I'm looking for somewhere to get a crash course in it. Are there any AIX Specific Scripting resource sites that anyone can recommend, really not getting a whole lot from google.
Thanks in advance,
Darren (3 Replies)
Discussion started by: dbridle
3 Replies
5. AIX
HI All,
Does anyone out there know of any good online tutorials for the basics of routing, gateways, networking with AIX, preferably the more recent versions like 5.2/5.3?
Using commands such as netstat, smit mkroute, etc. to connect to boxes on a network, and load software with networked... (1 Reply)
Discussion started by: jeffpas
1 Replies
6. AIX
I'm an AIX newby:eek: and need to learn fast (I go on a course in a few week's time but I need to know some stuff now:mad:).
Can anybody recommend a good AIX book please? Not too basic though - I've been in software for many years (8bit/16bit/32bit, etc, Intel/Microsoft/FORTRAN/68000/anything... (9 Replies)
Discussion started by: Pennant Man
9 Replies
7. AIX
Hi guys,
From where can i download a good book on AIX other than redbooks from IBM website. I am also looking for the below book.
AIX 5L Administration
By Randal K. Michael (3 Replies)
Discussion started by: shabu
3 Replies
8. AIX
Hi,
What's the good open-source debugger & memory analyzer for C programs in AIX ? (4 Replies)
Discussion started by: SteAlma
4 Replies
LEARN ABOUT DEBIAN
lwp::protocol::psgi
LWP::Protocol::PSGI(3pm) User Contributed Perl Documentation LWP::Protocol::PSGI(3pm)
NAME
LWP::Protocol::PSGI - Override LWP's HTTP/HTTPS backend with your own PSGI applciation
SYNOPSIS
use LWP::UserAgent;
use LWP::Protocol::PSGI;
# can be Mojolicious, Catalyst ... any PSGI application
my $psgi_app = do {
use Dancer;
setting apphandler => 'PSGI';
get '/search' => sub {
return 'googling ' . params->{q};
};
dance;
};
LWP::Protocol::PSGI->register($psgi_app);
# can hijack any code or module that uses LWP::UserAgent underneath, with no changes
my $ua = LWP::UserAgent->new;
my $res = $ua->get("http://www.google.com/search?q=bar");
print $res->content; # "googling bar"
DESCRIPTION
LWP::Protocol::PSGI is a module to hijack any code that uses LWP::UserAgent underneath such that any HTTP or HTTPS requests can be routed
to your own PSGI application.
Because it works with any code that uses LWP, you can override various WWW::*, Net::* or WebService::* modules such as WWW::Mechanize,
without modifying the calling code or its internals.
use WWW::Mechanize;
use LWP::Protocol::PSGI;
LWP::Protocol::PSGI->register($my_psgi_app);
my $mech = WWW::Mechanize->new;
$mech->get("http://amazon.com/"); # $my_psgi_app runs
METHODS
register
LWP::Protocol::PSGI->register($app);
my $guard = LWP::Protocol::PSGI->register($app);
Registers an override hook to hijack HTTP requests. If called in a non-void context, returns a Guard object that automatically resets
the override when it goes out of context.
{
my $guard = LWP::Protocol::PSGI->register($app);
# hijack the code using LWP with $app
}
# now LWP uses the original HTTP implementations
unregister
LWP::Protocol::PSGI->unregister;
Resets all the overrides for LWP. If you use the guard interface described above, it will be automatically called for you.
AUTHOR
Tatsuhiko Miyagawa <miyagawa@bulknews.net>
COPYRIGHT
Copyright 2011- Tatsuhiko Miyagawa
LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
SEE ALSO
Plack::Client LWP::UserAgent
perl v5.12.3 2011-05-12 LWP::Protocol::PSGI(3pm)