Re: [Catalyst] Usage of $c-uri_for and $c-res-redirect

2008-04-02 Thread Dustin Suchter
To: The elegant MVC web framework Subject: [Catalyst] Usage of $c-uri_for and $c-res-redirect Let's say I want to send people back and forth between an HTTP connection and an HTTPS connection on a server based on some action. For example, clicking on a logout button from within my application while

RE: [Catalyst] Usage of $c-uri_for and $c-res-redirect

2008-04-02 Thread Byron Young
-Original Message- From: Dustin Suchter [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 02, 2008 5:44 PM To: The elegant MVC web framework Subject: Re: [Catalyst] Usage of $c-uri_for and $c-res-redirect So I tried to look at the source of the test that failed, and I'm not sure I

Re: [Catalyst] Usage of $c-uri_for and $c-res-redirect

2008-04-02 Thread Dustin Suchter
MVC web framework Subject: Re: [Catalyst] Usage of $c-uri_for and $c-res-redirect So I tried to look at the source of the test that failed, and I'm not sure I even understand what it is doing. Here's the actual error message I'm getting: t/01useok t/02podskipped: set

Re: [Catalyst] Usage of $c-uri_for and $c-res-redirect

2008-04-02 Thread Adam Herzog
On Thu, Mar 27, 2008 at 2:37 AM, Dustin Suchter [EMAIL PROTECTED] wrote: So I like the idea of the plugin, but I'm having a hard time installing it. I found one hit on the Internet that with a report of someone else having the exact same problem as me, but I don't see the solution online:

Re: [Catalyst] Usage of $c-uri_for and $c-res-redirect

2008-04-02 Thread Dustin Suchter
That seems to have fixed the problem. Excellent catch! I had Catalyst::Runtime version 5.7010 so I used CPAN to upgrade that package which brought me up to 5.7012. I don't know of a nice clean way to remove a package you've installed with CPAN, but it was easy enough to just run 'test

Re: [Catalyst] Usage of $c-uri_for and $c-res-redirect

2008-03-27 Thread Dustin Suchter
ideas? Byron Young wrote: -Original Message- From: Dustin Suchter [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 26, 2008 1:13 PM To: The elegant MVC web framework Subject: [Catalyst] Usage of $c-uri_for and $c-res-redirect Let's say I want to send people back and forth between an HTTP

[Catalyst] Usage of $c-uri_for and $c-res-redirect

2008-03-26 Thread Dustin Suchter
Let's say I want to send people back and forth between an HTTP connection and an HTTPS connection on a server based on some action. For example, clicking on a logout button from within my application while connected via HTTPS does something like: $c-res-redirect(http://foo.com/;); The above

Re: [Catalyst] Usage of $c-uri_for and $c-res-redirect

2008-03-26 Thread Dustin Suchter
Can you directly control the port you redirect to? Part of my problem is having consistency between the production and test environments, which operate on 80/443 and 3000/3000 respectively. -d Ashley wrote: There are two approaches which have helped me. Remember the URI object underneath can

RE: [Catalyst] Usage of $c-uri_for and $c-res-redirect

2008-03-26 Thread Byron Young
-Original Message- From: Dustin Suchter [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 26, 2008 1:13 PM To: The elegant MVC web framework Subject: [Catalyst] Usage of $c-uri_for and $c-res-redirect Let's say I want to send people back and forth between an HTTP connection

Re: [Catalyst] Usage of $c-uri_for and $c-res-redirect

2008-03-26 Thread Ashley
On Mar 26, 2008, at 1:31 PM, Dustin Suchter wrote: Can you directly control the port you redirect to? Part of my problem is having consistency between the production and test environments, which operate on 80/443 and 3000/3000 respectively. Don't see why not. Just add in $c-config magick or

Re: [Catalyst] Usage of $c-uri_for and $c-res-redirect

2008-03-26 Thread KH
$c-uri_for pulls it's base path from $c-req-base. Quoting the documentation in the code: If your application was queried with the URI Chttp://localhost:3000/some/path then Cbase is Chttp://localhost:3000/ . So, setting $c-req-base to your new base would do the trick for you I think. You would