Help for this page

Select Code to Download


  1. or download this
    sub handle {
      my $self = shift->new;
    
    ...
        "\015\012", $self->response->headers_as_string, 
        "\015\012", $self->response->content;
    }
    
  2. or download this
       # imitate nph- cgi for IIS (pointed by Murray Nesbitt)
    -  my $status = defined($ENV{'SERVER_SOFTWARE'}) && $ENV{'SERVER_SOFTW
    +ARE'}=~/IIS/
    -    ? $ENV{SERVER_PROTOCOL} || 'HTTP/1.0' : 'Status:';
    ...
    +      ? $ENV{SERVER_PROTOCOL} || 'HTTP/1.0' : 'Status:';
    +  }
       my $code = $self->response->code;
    
  3. or download this
    sub nph {
      my $self = shift;
    
      $self->{'nph'} = 1;
      return $self;
    }
    
  4. or download this
    SOAP::Transport::HTTP::CGI
            ->dispatch_to ('/home/hue/lang/perl/modules', 'HelloWorld')
            ->nph
            ->handle;