Aldo,
On 24 Sep 2009, at 19:51, Aldo Bucchi wrote:
Hugh,
On Thu, Sep 24, 2009 at 8:15 AM, Hugh Williams <hwilli...@openlinksw.com
> wrote:
Aldo,
On 19 Sep 2009, at 22:02, Aldo Bucchi wrote:
Hi,
On Sep 17, 2009, at 20:53, Hugh Williams <hwilli...@openlinksw.com>
wrote:
Aldo,
On 17 Sep 2009, at 08:16, Aldo Bucchi wrote:
Hugh,
On Wed, Sep 16, 2009 at 5:37 PM, Hugh Williams <hwilli...@openlinksw.com
>
wrote:
Hi Aldo,
You should be able to create a URL rewrite rule to peform this pass-
thru as
detailed at:
http://docs.openlinksw.com/virtuoso/rdfiridereferencing.html#urlrewriteruleconductor
Note Virtuoso also has a http_proxy function as detailed at:
http://docs.openlinksw.com/virtuoso/fn_http_proxy.html
Thanks, I managed to create one using the http_proxy function and a
one liner VSP.
However, my attempts at creating a URL Rewrite rule did not work if
the host/authority piece of the rewritten URL is different than the
original. Is this possible?
[Hugh] Note sure what you mean by host/authority piece, are you
creating the
rewrite rule via the Conductor or manually by hand using the
functions ? If
the latter can provide details of the calls being made ?
[Aldo] I mean the domain of the URL.
For example:
Original URL:
http://myvirtuoso.com/foo/cars
Target URL:
http://bar.com/baz?q=cars
Where the second domain is hosted in a separate, unrelated machine.
I am using conductor UI, but currently on my phone;)
[Hugh] Ok, you could try to making a proxy virtual directory as
detailed
at:
http://docs.openlinksw.com/virtuoso/webserver.html#virtproxy
where physical path is the destination (http://bar.com/baz) and
the logical
is /baz. Then make a url rewrite rule which works on the logical
path /foo
and in the rule /foo/(.*) compose an internal redirect to /baz?q=
$1, which
should result in:
1. Requests to /foo/cars will be redirected to /baz?q=cars
2. /baz will send requests to baz.com where it will get /baz?q=cars
I hope this works for you ...
Very clever hack ;)
It sure works for that usecase and I did learn a couple of things down
this road. But what I am trying to do is to proxy ANY URL, which I
don't know beforehand, including the domain.
So, my examples were too simple ;)
Here are some new ones.
Original URL:
http://myvirtuoso.com/bar.com/thispage
Target URL:
http://bar.com/thispage
Original URL:
http://myvirtuoso.com/goole.com/
Target URL:
http://google.com/
I already fixed it via coding. By opening an http client, etc ;)
Thanks!,
A
[Hugh] We do not have a click-only-solution when domain changes. Thus
behind the virtual directory, one would need to write the logic in a
small vsp page to parse the path and call http_proxy or http_client.
Regards
Hugh
Regards
Hugh
Regards
Hugh
Regards,
A
Best Regards
Hugh Williams
Professional Services
OpenLink Software
Web: http://www.openlinksw.com
Support: http://support.openlinksw.com
Forums: http://boards.openlinksw.com/support
On 16 Sep 2009, at 20:38, Aldo Bucchi wrote:
Hi,
I would like to use Virtuoso as a transparent, pass-thru HTTP proxy
that works like follows:
http://myvirtuosoinstance.com/httpproxy?url=http%3A%2F%2Ffoo.com
%2Fbar
and ends up calling
http://foo.com/bar
under the covers via Virtuoso HTTP Client, transferring unmodified
raw
data ( can be of any mime type ).
What's the simplest way to achieve this?
Can it be achieved with just a rule?
No need for authentication, etc. Just plain GETs for now.
Regards,
A
--
Aldo Bucchi
skype:aldo.bucchi
http://www.univrz.com/
http://aldobucchi.com/
PRIVILEGED AND CONFIDENTIAL INFORMATION
This message is only for the use of the individual or entity to
which it
is
addressed and may contain information that is privileged and
confidential.
If
you are not the intended recipient, please do not distribute or
copy this
communication, by e-mail or otherwise. Instead, please notify us
immediately by
return e-mail.
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF,
CA
is the only developer event you need to attend this year. Jumpstart
your
developing skills, take BlackBerry mobile applications to market
and stay
ahead of the curve. Join us from November 9-12, 2009. Register
now!
http://p.sf.net/sfu/devconf
_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users
--
Aldo Bucchi
skype:aldo.bucchi
http://www.univrz.com/
http://aldobucchi.com/
PRIVILEGED AND CONFIDENTIAL INFORMATION
This message is only for the use of the individual or entity to
which it is
addressed and may contain information that is privileged and
confidential.
If
you are not the intended recipient, please do not distribute or
copy this
communication, by e-mail or otherwise. Instead, please notify us
immediately
by
return e-mail.
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF,
CA
is the only developer event you need to attend this year. Jumpstart
your
developing skills, take BlackBerry mobile applications to market
and stay
ahead of the curve. Join us from November 9-12, 2009. Register
now!
http://p.sf.net/sfu/devconf
_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users
--
Aldo Bucchi
skype:aldo.bucchi
http://www.univrz.com/
http://aldobucchi.com/
PRIVILEGED AND CONFIDENTIAL INFORMATION
This message is only for the use of the individual or entity to
which it is
addressed and may contain information that is privileged and
confidential. If
you are not the intended recipient, please do not distribute or copy
this
communication, by e-mail or otherwise. Instead, please notify us
immediately by
return e-mail.
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart
your
developing skills, take BlackBerry mobile applications to market and
stay
ahead of the curve. Join us from November 9-12, 2009. Register
now!
http://p.sf.net/sfu/devconf
_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users