home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2004 December / PCpro_2004_12.ISO / files / webserver / tsw / TSW_3.4.0.exe / Apache2 / ssl / do_https4.al < prev    next >
Encoding:
Text File  |  2004-03-20  |  624 b   |  22 lines

  1. # NOTE: Derived from blib\lib\Net\SSLeay.pm.
  2. # Changes made here will be lost when autosplit is run again.
  3. # See AutoSplit.pm.
  4. package Net::SSLeay;
  5.  
  6. #line 1978 "blib\lib\Net\SSLeay.pm (autosplit into blib\lib\auto\Net\SSLeay\do_https4.al)"
  7. ### Returns headers as a hash where multiple instances of same header
  8. ### are handled correctly.
  9.  
  10. sub do_https4 {
  11.     my ($page, $response, $headers) = &do_https3;
  12.     my %hr = ();
  13.     for my $hh (split /\s?\n/, $headers) {
  14.     my ($h,$v)=/^(\S+)\:\s*(.*)$/;
  15.     push @{$hr{uc($h)}}, $v;
  16.     }
  17.     return ($page, $response, \%hr);
  18. }
  19.  
  20. # end of Net::SSLeay::do_https4
  21. 1;
  22.