perl-asp mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Quentin Smith <quent...@comclub.dyndns.org>
Subject Re: Hiccup with long file paths using $Response->Redirect
Date Sun, 17 Feb 2002 14:28:47 GMT
Hi-
I believe it is because you are using a local path with $Response->Redirect. What happens
with $Response->Redirect is that Apache sends back to the user the path
you give, and the user's web browser requests the new page. I am guessing
that your pages aren't really at http://www.my.server/Program Files/Apache
Group/Apache/htdocs/, but instead at just http://www.my.server/. So, chop
off /Program Files/Apache Group/Apache/htdocs from your path. You still
need the leading / though.
HTH,
--Quentin

On Sun, 17 Feb 2002, Christopher Brown wrote:

> Date: Sun, 17 Feb 2002 01:07:25 -0800
> From: Christopher Brown <brown_ct@yahoo.com>
> To: asp@perl.apache.org
> Subject: Hiccup with long file paths using $Response->Redirect
>
> Hi all,
>
> Here is an easy one that I am too dense to solve myself.
>
> I am getting an error when I use $Response->Redirect.  Apache-ASP seems
> picky if I try to Redirect to a file whose path and name is long.  For
> example, my redirect points to
> 	'/Program Files/Apache Group/Apache/htdocs/index.html'
> works, but does not work for
> 	'/Program Files/Apache
> Group/Apache/htdocs/nwa/integration/html/index.html'.
>
> At some point it hiccups.  It even hiccups when I redirect it as a relative
> link.  In all its a minor problem, but would like to learn of a solution for
> piece of mind's sake.
>
> Thanks in Advance,
>
> Chris.
>
>
> PS.  Oh yeah, here is the error:
>
> Errors Output
> [Sun Feb 17 00:34:41 2002] (eval 158): Identifier too long at (eval 158)
> line 1. , c:/Perl/site/lib/Apache/ASP.pm line 2135... see compile error for
> rest
> Debug Output
> [Sun Feb 17 00:34:41 2002] (eval 158): Identifier too long at (eval 158)
> line 1. , c:/Perl/site/lib/Apache/ASP.pm line 2135 ...
> Compile Error
>
> [Sun Feb 17 00:34:41 2002] (eval 158): Identifier too long at (eval 158)
> line 1.
>  ...
>
> Compiled Data with Error
>
>   -: package
> Apache::ASP::Compiles::c__program_files_apache_group_apache_htdocs_nwa_integ
> ration_html___global_asax6853b58099f6e95af8bde3b47da84726; ;; sub
> Apache::ASP::Compiles::c__program_files_apache_group_apache_htdocs_nwa_integ
> ration_html___global_asax6853b58099f6e95af8bde3b47da84726::__ASP_c__program_
> files_apache_group_apache_htdocs_nwa_integration_html_validate_login_aspx685
> 3b58099f6e95af8bde3b47da84726 {  ;; package
> Apache::ASP::Compiles::c__program_files_apache_group_apache_htdocs_nwa_integ
> ration_html___global_asax6853b58099f6e95af8bde3b47da84726; ;; no strict;;use
> vars qw($Application $Session $Response $Server $Request);;use lib
> qw(c:/program files/apache group/apache/htdocs/nwa/integration/html//.);;;
>   -: #line 1 validate_login.asp
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
> For additional commands, e-mail: asp-help@perl.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org


Mime
View raw message