<br><br><b><i>Bill Moseley <moseley@hank.org></i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> On Wed, May 14, 2008 at 08:29:00AM -0700, Dr. Jennifer Nussbaum wrote:<br>> Hi,<br>> <br>> I just upgraded some packages on my server, including some versions<br>> of Catalyst. Now Im getting problems after i log in a user. Im<br>> using the RequireSSL plugin, but now, after a user logs in<br>> successfully, instead of going to http://www.mysite.com/myapp/, it<br>> goes to<br>> http://www.mysite.com:443/myapp/user/http://www.mysite.com/myapp.<br>> And then I get the message "Bad Request...your speaking plain HTTP<br>> to an SSL-enabled server port. Instead use the HTTPS scheme to<br>> access this URL, please."<br><br>Sure you didn't end up down-grading Catalyst::Engine::Apache?<br><br>At one point it only would remove port 80 but in recent versions it<br>removes
both 80 and 443:</blockquote>Hey, i must have missed that for some reason. Upgrading fixes the port problem.<br><br>But i do still have the double-URL problem which may be something im doing.<br>(But it did change recnetly....)<br><br>My login system (i copied this from somewhere) works like this: in my Root<br>controller, if there's no user, i set<br><br> $c->session->{original_uri} = $c->req->uri;<br><br>and then i redirect to the login page. Then in the login routine, if the login is successful:<br><br> my $redirect = $c->session->{original_uri};<br> $c->session->{original_uri} = undef;<br> $c->res->redirect( $c->uri_for("$redirect")); # stringify<br><br>But this redirects to something with that weird double URL (but without the 443<br>problem at least).<br><br>Is this something thats changed recently? What should i be doing to get this behaviour?<br><br>Thanx again!<br><br>Jen<br><p>