On Mon, 20 Jan 2003, Alex Sergeyev wrote:

> @@ -8,6 +8,7 @@
>  use Apache::File;
>  use XML::LibXML 1.31;
>  use Time::Piece; # overrides localtime
> +use URI::WithBase;
>
> use vars qw/@ISA $NS $VERSION/;
>
> @@ -45,6 +46,10 @@
>      if ($uri =~ /^axkit:/) {
>          $raw_xml = AxKit::get_axkit_uri($uri);
>      } else {
> +     my $r = Apache->request;
> +     my $base = "http://"; . $r->hostname . ":" . $r->server->port . $r->uri;
> +     $uri = URI::WithBase->new($uri, $base)->abs();
>       my $ua = HTTP::GHTTP->new($uri);
>       $ua->process_request;
>          $raw_xml = $ua->get_body;

Looks OK to me.

> (again.... Is it possible that axkit: scheme will work later? :) ..)

Yes. But you didn't answer my question - when did you check out CVS? Try
it with CVS from now, and then come back with full logs, full example
code, and I'll try and help.

-- 
<!-- Matt -->
<:->get a SMart net</:->
Spam trap - do not mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to