Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

CGI::Carp fatalsToFile

by Bod (Parson)
on Oct 05, 2021 at 17:14 UTC ( [id://11137242]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if (!defined @avail) {
        foreach (split /\n/, &get("https://$ENV{'HTTP_HOST'}/cgi-bin/booki
    +ng.pl?command=check&st=$data{'st'}&ed=$data{'ed'}&force=$data{'force'
    +}", $availability);) {
    ...
            $avail[$k] = $v;
        }
    }
    
  2. or download this
    my $availability = LWP::Simple::get("https://$ENV{'HTTP_HOST'}/cgi-bin
    +/booking.pl?command=check&st=$data{'st'}&ed=$data{'ed'}&force=$data{'
    +force'}");
    
    ...
            $avail[$k] = $v;
        }
    }
    
  3. or download this
    my $availability;
    my $response = LWP::Simple::getstore("https://$ENV{'HTTP_HOST'}/cgi-bi
    +n/booking.pl?command=check&st=$data{'st'}&ed=$data{'ed'}&force=$data{
    +'force'}", $availability);
    print qq[("https://$ENV{'HTTP_HOST'}/cgi-bin/booking.pl?command=check&
    +st=$data{'st'}&ed=$data{'ed'}&force=$data{'force'}")\n];
    print "->$availability<-\n";
    print "$response\n";
    
  4. or download this
    fetch('/api/', {
            method: 'POST',
    ...
        .catch(error => {
            console.log(error.message);
    });
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://11137242]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2024-04-16 05:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found