Apache-ProxyRewrite

 view release on metacpan or  search on metacpan

ChangeLog  view on Meta::CPAN

	
2001-03-02	Christian Gilmore <cgilmore@tivoli.com>

	o  Corrected mishandling of URL-shrinking in rewrite_url.
	o  Ensured that parsing loop closes in the case of final
	   missing end tag.
	o  Now unescape headers for proxy request. Bug reported and
	   patched by Eric Kolve.
	o  Removed use of deprecated header_in and header_out in favor
	   of current headers_in and headers_out.
	o  Set-Cookie path is now rewritten. Feature requested by Eric
 	   Kolve.
	o  Made release 0.12.

2001-01-14	Christian Gilmore <cgilmore@tivoli.com>

	o  Added 'base' as an element of the LINK_ELEMENT hash. Bug
	   reported by Eric Kolve.
	o  Made release 0.11.
	
2001-01-02	Christian Gilmore <cgilmore@tivoli.com>

ProxyRewrite.pm  view on Meta::CPAN

      $response, $mapref) = @_;
  my $parsed_uri = Apache::URI->parse($r);

  $r->log->debug("respond: URI: ", $r->uri);
  $r->log->debug("respond: Parsed hostinfo: ", $parsed_uri->hostinfo());

  # feed reponse back into our request_record
  $response->scan(sub {
		    my ($header, $value) = @_;
		    $r->log->debug("respond: OUT $header: $value");
		    if ($header =~ /^Set-Cookie/i) {
		      $value =~ /path=([^;]+)/i;
		      my $cookie_path = $1;
		      &rewrite_url($r, $remote_site, \$cookie_path, $mapref);
		      # Handle the special case of when the value
		      # begins with a port
		      if ($cookie_path =~ /^:/) {
			$value =~ 
			  s/(path=)([^;]+)/$1$remote_site$cookie_path/i;
		      } else {
			$value =~ s/(path=)([^;]+)/$1$cookie_path/i;



( run in 0.398 second using v1.01-cache-2.11-cpan-4e96b696675 )