RE: Redirection to do Cross Domain Request

2012-07-20 Thread Jerome Louvel
automatically resolved. However, this variable should also be resolved in the INBOUND mode, allowing proper internal redirection. Could you enter a bug report for the latter issue so we keep track of it ? Best regards, Jerome -- http://www.restlet.com http://twitter.com/#!/jlouvel -Message

Redirection to do Cross Domain Request

2012-07-19 Thread Thierry LAU
edirecting via server dispatcher to: http://localhost:808​0/rest/catalog/v1/do​gs 18/07/2012 17:28:27 WARN org.restlet - No next Restlet provided for server redirection to http://localhost:808​0/rest/catalog/v1/do​gs Jul 18, 2012 5:28:27 PM org.apache.catalina.​core.ApplicationCont​ext log INFO

RE: Redirection to do Cross Domain Request

2012-07-19 Thread Thierry LAU
Hi Jerome Sure. I will repost in english tonight. I haven't noticed that english is mandatory. Thierry -- View this message in context: http://restlet-discuss.1400322.n2.nabble.com/Redirection-to-do-Cross-Domain-Request-tp7578217p7578220.html Sent from the Restlet Discuss mailing list ar

RE: Redirection to do Cross Domain Request

2012-07-19 Thread Jerome Louvel
nvoyé : mercredi 18 juillet 2012 22:00 À : discuss@restlet.tigris.org Objet : Redirection to do Cross Domain Request Bonjour, Je fais face actuellement à un problème que je vais vous exposer ci-dessous : J'ai : - clientA + serveurA sur http://localhost:8000/ - serveurB sur http://loca

Redirection to do Cross Domain Request

2012-07-18 Thread Thierry LAU
at index '37': "{". It will be automatically encoded. 18/07/2012 17:28:27 INFO org.restlet - Redirecting via server dispatcher to: http://localhost:8080/rest/catalog/v1/dogs 18/07/2012 17:28:27 WARN org.restlet - No next Restlet provided for server redirection to h

Redirection in GAE with Restlet lib. How?

2012-04-27 Thread Sultan Kosaev
Hi everyone. I write simply app. I test it on localhost, and then i deployed it on GAE. But I noticed that I did not going redirection. But the redirection worked locally. I make a redirect in the following way: *if(role.equals("student")) { redirectPermanent

Re: Strange problem with redirection

2010-03-16 Thread Mathias
Thierry, yes, you are right. When using the Simple HTTP server with the Simple extension the issue does not appear. Thanks for the clarification! Cheers, Mathias --- math...@parboiled.org http://www.parboiled.org On 16.03.2010, at 12:43, Thierry Boileau wrote: > Hello Mathias, > > the issue

Re: Strange problem with redirection

2010-03-16 Thread Thierry Boileau
Hello Mathias, the issue is related to the behaviour of the internal server connector. From what I've noticed, this should not happen with one of the other server connectors (jetty, simple, etc.). Best regards, Thierry Boileau > Thierry, > > ok, thanks for the bug confirmation. > Concerning y

Re: Strange problem with redirection

2010-03-16 Thread Mathias
Thierry, ok, thanks for the bug confirmation. Concerning your suggested work around I'm not quite sure what you mean. Basically I would like to redirect an incoming HTTP request to a local file. How can I do that with a server connector? Cheers, Mathias --- math...@parboiled.org http://www.parbo

Re: Strange problem with redirection

2010-03-16 Thread Thierry Boileau
Hello Mathias, thanks for your report, I've added an issue for it: http://restlet.tigris.org/issues/show_bug.cgi?id=1059. As a workaround, you can use one of the provided server connectors: http://wiki.restlet.org/docs_2.0/13-restlet/37-restlet.html Best regards, Thierry Boileau > Gentlemen, >

RE: Strange problem with redirection

2010-03-16 Thread Mathias
Gentlemen, thanks a lot for the new release. I guess I missed the bug report/fix for this issue: "Allowed Redirector to plug to another protocol. Reported by Tal Liron." With RC1 the described error is gone, however the new behavior is still not as expected. Now my log looks like this: 09:42:33

RE: Strange problem with redirection

2010-03-16 Thread Mathias
To make it easier to test the described problem I tried to recreate it with a very simple test application. The following Component also doesn't redirect to the given file as expected. Am I missing something? import org.restlet.Application; import org.restlet.Component; import org.restlet.Restlet

Strange problem with redirection

2010-03-15 Thread Mathias
Gentlemen, first of all: congratulations to the restlet team for making available such an excellent framework! Restlet is true fun to work with! Still, I currently have a strange problem that someone might be able to give me a hint for: I'm running restlet 2.0M7 JavaSE edition directly with the

RE: Redirection?

2010-02-17 Thread Jerome Louvel
embre 2009 22:24 À : discuss@restlet.tigris.org Objet : Re: Redirection? First of all, thanks for the replies! I know how to do that using HTML, PHP, JSP, JS etc... My BIG question is... is there really some way to do that using just HTTP? Something like an OutputStream *directly* to the client!

Re: Redirection?

2009-12-28 Thread Sopasakis Pantelis
First of all, thanks for the replies! I know how to do that using HTML, PHP, JSP, JS etc... My BIG question is... is there really some way to do that using just HTTP? Something like an OutputStream *directly* to the client! Is it possible to think of a response returned to a client as a message wri

Re: Redirection?

2009-12-28 Thread Matt Kennedy
"RFC 2616 :-) http://www.ietf.org/rfc/rfc2616.txt (2626 is the Y2K RFC)" Woops. Hm, next time I should probably copy/paste the link instead of fat-fingering the name huh? Rob is right about everything else here too, I should have made it more clear that the meta-refresh trick is hardly opti

Re: Redirection?

2009-12-28 Thread Rob Heittman
RFC 2616 :-) http://www.ietf.org/rfc/rfc2616.txt (2626 is the Y2K RFC) Sopasakis -- as HTTP itself doesn't have a means of specifying a delay before a redirect, you won't get consistent behavior across every HTTP compliant client or library. Most user-agents will act immediately on an HTTP red

Re: Redirection?

2009-12-28 Thread Matt Kennedy
I guess I'm not clear on your motivation for trying to accomplish this on the server. The easy way to do a "redirect" to another page if you want the original page to be displayed for a set period of time is to return html that has a special meta tag in the head section. See http://en.wikipedi

Re: Redirection?

2009-12-28 Thread Sopasakis Pantelis
How could I keep the socket open? Is there a way to do that from within the Resource class? Unfortunately javascript and HTML redirection work only with web browsers - such a practice would fail for curl clients... On Mon, 2009-12-28 at 05:17 -0800, Ben R Vesco wrote: > "you will be re

Re: Redirection?

2009-12-28 Thread Ben R Vesco
"you will be redirected in x seconds" type pages are a javascript thing unless you have kept a socket open. On Sun, Dec 27, 2009 at 2:18 AM, Sopasakis Pantelis wrote: > Hi all, >  I need to support redirection for a resource but first return the > message "You will be re

Redirection?

2009-12-28 Thread Sopasakis Pantelis
Hi all, I need to support redirection for a resource but first return the message "You will be redirected to another page in 2 seconds...", so I tried the following code... @Override protected Representation get(Variant variant) throws ResourceException { Thread thread =

RE: Response message before redirection

2008-12-25 Thread Mohamed Abdel-Aziz Bayoumi
> > Hi Mohamed, > > You could use an HTML redirection in your result page instead of s HTTP > redirect. > > http://www.mycompany.com/target";> > > Best regards, > Jerome Louvel > -- > Restlet ~ Founder and Lead developer ~ http://www.restlet.org > Noe

Re: Response message before redirection

2008-12-24 Thread John D. Mitchell
On Wednesday 2008.12.24, at 08:10 , Jerome Louvel wrote: [...] > You could use an HTML redirection in your result page instead of s > HTTP redirect. > > http://www.mycompany.com/target > "> With that approach, remember to also put in an explicit hyperlink in the body

RE: Response message before redirection

2008-12-24 Thread Jerome Louvel
Hi Mohamed, You could use an HTML redirection in your result page instead of s HTTP redirect. http://www.mycompany.com/target";> Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noe

Response message before redirection

2008-12-22 Thread Mohamed Abdel-Aziz Bayoumi
rom code without using HTTP's representation or GUI) Problem is >> if i did both (i.e. provide message before/then redirect to main page) the former is completely neglected and all that they receive as a response from me is the HTTP representation printed on their consoles .

Re: Problem with Url redirection

2008-11-11 Thread Murilo Foltran
> -- > *De :* Murilo Foltran [mailto:[EMAIL PROTECTED] > *Envoyé :* mardi 11 novembre 2008 13:03 > *À :* discuss@restlet.tigris.org > *Objet :* Re: Problem with Url redirection > > Hello, > > Sorry, I sent that email without read it before. I was

RE: Problem with Url redirection

2008-11-11 Thread Jerome Louvel
Lead developer ~ <http://www.restlet.org/> http://www.restlet.org Noelios Technologies ~ Co-founder ~ <http://www.noelios.com/> http://www.noelios.com _ De : Murilo Foltran [mailto:[EMAIL PROTECTED] Envoyé : mardi 11 novembre 2008 13:03 À : discuss@restlet.tigris.org Objet : Re:

Re: Problem with Url redirection

2008-11-11 Thread Murilo Foltran
s guide of this component here: http://mule.mulesource.org/display/RESTLET/User%27s+Guide It was very simple. You just need create a class which extends org.restlet.Application and implement the createRoot method. We can't use that application with redirection working because it don't exte

Re: Problem with Url redirection

2008-11-10 Thread Thierry Boileau
u -- Restlet ~ Core developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com Hi, After I got the redirection class working I tried to modify to work on mule (www.mulesource.org) On my my example I just create a class and that's it. But mule ne

Re: Problem with Url redirection

2008-11-10 Thread Murilo Foltran
Hi, After I got the redirection class working I tried to modify to work on mule (www.mulesource.org) On my my example I just create a class and that's it. But mule needs a class which extends org.restlet.Application, and my problems started again. This is my class: public class EsbApplic

Re: Problem with Url redirection

2008-11-04 Thread Murilo Foltran
No problems I understood the right address. So I got the successful redirection. I use this class. public class Test { public static void main(String[] args) throws Exception { // Create a component Component component = new Component(); component.getServers

Re: Problem with Url redirection

2008-11-04 Thread Thierry Boileau
Ooops... I was testing redirection at the same time... :) Thierry On Mon, Nov 3, 2008 at 1:43 PM, Thierry Boileau <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote: NB: for a complete list of supported predefined variables: http://localhost:8182/documentation

Re: Problem with Url redirection

2008-11-03 Thread Tim Peierls
On Mon, Nov 3, 2008 at 1:43 PM, Thierry Boileau <[EMAIL PROTECTED] > wrote: > NB: > for a complete list of supported predefined variables: > > http://localhost:8182/documentation/1.1/api/org/restlet/util/Resolver.html#createResolver(org.restlet.data.Request,%20org.restlet.data.Response)

Re: Problem with Url redirection

2008-11-03 Thread Murilo Foltran
Thanks Again Thierry I'll try this and post the result. Cheers, Murilo On Mon, Nov 3, 2008 at 4:43 PM, Thierry Boileau <[EMAIL PROTECTED] > wrote: > Hello Murilo, > > Here is a sample code where http://localhost:8182/blabla/blibli are > redirected to https://services.dev/blabla/blibli : > > *

Re: Problem with Url redirection

2008-11-03 Thread Thierry Boileau
Hello Murilo, Here is a sample code where http://localhost:8182/blabla/blibli are redirected to https://services.dev/blabla/blibli : *** Component component = new Component(); component.getServers().add(Protocol.HTTP, 8182); component.getClients().add(Protocol.HTTP);

Re: Problem with Url redirection

2008-11-03 Thread Murilo Foltran
Hi, I create a simple Redirector from the tutorial's Part10 and works. But I'm not understand how I can make this. I have a request like this: http://localhost:8182/services/users And I want to redirect to this: https://services.dev/services/users. I just want change the host and maintain the

Re: Problem with Url redirection

2008-10-31 Thread Murilo Foltran
Thanks a lot Thierry! I'll start on this right now! Cheers Murilo On Fri, Oct 31, 2008 at 10:18 AM, Thierry Boileau < [EMAIL PROTECTED]> wrote: > Hello Murilo, > > I wonder if you can use the Redirector Restlet instead in "dispatcher" mode > => > http://www.restlet.org/documentation/1.1/api/or

Re: Problem with Url redirection

2008-10-31 Thread Thierry Boileau
Hello Murilo, I wonder if you can use the Redirector Restlet instead in "dispatcher" mode => http://www.restlet.org/documentation/1.1/api/org/restlet/Redirector.html You may need to override the "redirectDispatcher" method. best regards, Thierry Boileau Hi, I'm using restlet with Mule (ww

Problem with Url redirection

2008-10-31 Thread Murilo Foltran
Hi, I'm using restlet with Mule (www.mulesource.org). We have a system with 3 layer. A web layer (using Joomla), ESB layer (using Mule+Restlet) and Services layer (using Apache + PHP). Joomla makes a request through ESB layer to Services layer. So... I need receive this request, send this to Se

Re: Directory redirection issues

2008-01-22 Thread Jerome Louvel
equest instead to append > the '/' as if you did the redirection and the client sent you back a > new request with the trailing '/'. But doing the redirection internally only wouldn't help for the issue mentioned above. The problem is that it is the browser that resolv

Re: Directory redirection issues

2008-01-21 Thread Paul J. Lucas
On Jan 21, 2008, at 1:32 PM, Jerome Louvel wrote: 1. How do I turn directory redirection off? Specifically, if the request refers to a directory and the URI doesn't end in '/', it's OK for the server to add the '/' internally for processing, but I don

RE: Directory redirection issues

2008-01-21 Thread Jerome Louvel
Hi Paul, > In DirectoryResource, there's code that sets directorRedirection if > the directory's URI doesn't end in '/' so that, when a request comes > in for a directory and it doesn't end in '/', the server will > issue a 303 response

Directory redirection issues

2008-01-17 Thread Paul J. Lucas
In DirectoryResource, there's code that sets directorRedirection if the directory's URI doesn't end in '/' so that, when a request comes in for a directory and it doesn't end in '/', the server will issue a 303 response. 1. How do I turn director