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 ...

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&reg; 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&#45;12, 2009. Register
now&#33;
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&reg; 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&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Reply via email to