$93 GRAYBYTE WORDPRESS FILE MANAGER $54

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/usr/local/share/perl5/LWP/Protocol/

HOME
Current File : /usr/local/share/perl5/LWP/Protocol//cpan.pm
package LWP::Protocol::cpan;

use strict;

use parent qw(LWP::Protocol);

our $VERSION = '6.76';

require URI;
require HTTP::Status;
require HTTP::Response;

our $CPAN;

unless ($CPAN) {
    # Try to find local CPAN mirror via $CPAN::Config
    eval {
	require CPAN::Config;
	if($CPAN::Config) {
	    my $urls = $CPAN::Config->{urllist};
	    if (ref($urls) eq "ARRAY") {
		my $file;
		for (@$urls) {
		    if (/^file:/) {
			$file = $_;
			last;
		    }
		}

		if ($file) {
		    $CPAN = $file;
		}
		else {
		    $CPAN = $urls->[0];
		}
	    }
	}
    };

    $CPAN ||= "http://cpan.org/";  # last resort
}

# ensure that we don't chop of last part
$CPAN .= "/" unless $CPAN =~ m,/$,;


sub request {
    my($self, $request, $proxy, $arg, $size) = @_;
    # check proxy
    if (defined $proxy)
    {
	return HTTP::Response->new(HTTP::Status::RC_BAD_REQUEST,
				   'You can not proxy with cpan');
    }

    # check method
    my $method = $request->method;
    unless ($method eq 'GET' || $method eq 'HEAD') {
	return HTTP::Response->new(HTTP::Status::RC_BAD_REQUEST,
				   'Library does not allow method ' .
				   "$method for 'cpan:' URLs");
    }

    my $path = $request->uri->path;
    $path =~ s,^/,,;

    my $response = HTTP::Response->new(HTTP::Status::RC_FOUND);
    $response->header("Location" => URI->new_abs($path, $CPAN));
    $response;
}

1;


Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
21 Mar 2024 11.50 AM
root / root
0755
http
--
21 Mar 2024 11.50 AM
root / root
0755
https
--
21 Mar 2024 11.50 AM
root / root
0755
cpan.pm
1.331 KB
25 Jan 2024 6.31 PM
root / root
0444
data.pm
1.206 KB
25 Jan 2024 6.31 PM
root / root
0444
file.pm
3.755 KB
25 Jan 2024 6.31 PM
root / root
0444
ftp.pm
18.695 KB
25 Jan 2024 6.31 PM
root / root
0444
gopher.pm
5.596 KB
25 Jan 2024 6.31 PM
root / root
0444
http.pm
14.665 KB
25 Jan 2024 6.31 PM
root / root
0444
https.pm
5.411 KB
11 Mar 2024 1.08 AM
root / root
0444
loopback.pm
0.574 KB
25 Jan 2024 6.31 PM
root / root
0444
mailto.pm
4.305 KB
25 Jan 2024 6.31 PM
root / root
0444
nntp.pm
4.1 KB
25 Jan 2024 6.31 PM
root / root
0444
nogo.pm
0.598 KB
25 Jan 2024 6.31 PM
root / root
0444

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF