redirect problem  
Author Message
nayajd





PostPosted: 2005-5-10 16:47:00 Top

java-programmer, redirect problem Hi everyone,

I have a problem, I am connectin to a lotus notes database to download
a file (using URLConnection)

...gbp.nsf/agWebLAL?OpenAgent&UNID=A9D19EDE65447DF5C1256F2000465E87

The thing is lotus notes doesn't give the filename, it redirects me to
something first, then downloads the filename..

Does anyone know of a way on how I can get the final url (the place
where I am being redirected), filename and mimetype

Thanks!

 
Will





PostPosted: 2004-4-1 12:48:00 Top

java-programmer >> redirect problem Test server: Remote server:
Windows XP pro. Linux
Apache 1.3.27 Apache 1.3.27
PHP 4.3.4 PHP 4.3.2

I did a phpinfo() on the two servers and I did n't see any differences
that I thought would cause this but then what do I know.

Pedro Graca wrote:
> Will wrote:
>
>>I downloaded a PHP webcounting script from the web. I got it working on
>>my home test server but the same thing does not work when I put on my
>>hosting server.
>
>
> What are the differences between the two servers?
> Linux/Windows?
> IIS/Apache?
> PHP 4.1.0/PHP 5.0.0?
>
> and most importantly
> home php.ini / host php.ini ?
>
>
> Try inserting at the top of your scripts the two lines that follow so
> that PHP will report the use of uninitialized variables:
>
> error_reporting(E_ALL);
> ini_set('display_errors', '1');
>
>
> Happy Bug Hunting :)

 
Pedro Graca





PostPosted: 2004-4-1 16:49:00 Top

java-programmer >> redirect problem Will wrote:
> I downloaded a PHP webcounting script from the web. I got it working on
> my home test server but the same thing does not work when I put on my
> hosting server.
>
> the string that calls the script is:
><a href="webcounter.php?src=http://www.cnn.com"> CNN </a>
>
>
> The code that handles it is:
>
> $extra_ext = "redirect:";
>
> if (basename($PHP_SELF)=="webcounter.php") {
> // we are indexing a different file
> $source = $_GET['src'];
>
> $tmp = substr($source, 0, 6);
>
> if ($tmp=='http:/' || $tmp=='https:' || $tmp=='ftp://') {
> $location=$source;
> $rpage = $extra_ext.$source;
>
> }
> else {
> $location=$rootpage.$source;
> $rpage = $extra_int.$source;
> }
> webcounter ($ctype,$rpage);
> header ("Location: $location");

Maybe your problem is not the header call, but something on the
webcounter function ...

Try a echo() before and after the call to webcounter()

// since you're debugging this turn on error reporting too
error_reporting(E_ALL);
ini_set('display_errors', '1');

echo 'before webcounter()';
webcounter($ctype, $rpage);
echo 'after webcounter()';
header('Location: ' . $location);

> exit;
> }


--
USENET would be a better place if everybody read: : mail address :
http://www.catb.org/~esr/faqs/smart-questions.html : is valid for :
http://www.netmeister.org/news/learn2quote2.html : "text/plain" :
http://www.expita.com/nomime.html : to 10K bytes :
 
 
John





PostPosted: 2006-7-11 22:18:00 Top

java-programmer >> redirect problem Hi

I have a page running in a sub folder. In this page I try to redirect to a
page in the Parent (main) root folder of the site like
Response.Redirect("..\staff_login.asp"). The url in the browser
unfortunately translates as;

http://www.mydomian.com/Folder/..%5Cstaff_login.asp

instead of;

http://www.mydomian.com/staff_login.asp

What is the problem and how can I fix it?

Thanks

Regards


 
 
Ray Costanzo [MVP]





PostPosted: 2006-7-11 22:57:00 Top

java-programmer >> redirect problem Use a forward slash instead of a backslash.

Ray at work

"John" <email***@***.com> wrote in message
news:email***@***.com...
> Hi
>
> I have a page running in a sub folder. In this page I try to redirect to a
> page in the Parent (main) root folder of the site like
> Response.Redirect("..\staff_login.asp"). The url in the browser
> unfortunately translates as;
>
> http://www.mydomian.com/Folder/..%5Cstaff_login.asp
>
> instead of;
>
> http://www.mydomian.com/staff_login.asp
>
> What is the problem and how can I fix it?
>
> Thanks
>
> Regards
>


 
 
gauravkg via DotNetMonster.com





PostPosted: 2006-8-23 16:08:00 Top

java-programmer >> redirect problem i have twp pages add,and preview

i add page i am doing data entry
i preview i am previewing the data.

n preview have edit button iwant on clicking edit it should go back to add
page with the values of preview page how can i do it.

--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/Forums.aspx/asp-net/200608/1

 
 
Cowboy (Gregory A. Beamer)





PostPosted: 2006-8-23 21:12:00 Top

java-programmer >> redirect problem Put two panels on a single page pnlAdd and pnlPreview. You now have all of
the data you desire on a single page, but it appears to be two pages for the
user.

When the user clicks the button to "submit" (or preview) on the add page,
you hide the add panel and show teh preview panel. If he clicks the back
button on preview, you show the add panel and hide the preview panel. If he
clicks submit, you can show a third panel: pnlFinished that says he added to
the database.

That is one idea.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************************************************
Think Outside the Box!
*************************************************
"gauravkg via DotNetMonster.com" <u25584@uwe> wrote in message
news:653058dfc1fdb@uwe...
>i have twp pages add,and preview
>
> i add page i am doing data entry
> i preview i am previewing the data.
>
> n preview have edit button iwant on clicking edit it should go back to add
> page with the values of preview page how can i do it.
>
> --
> Message posted via DotNetMonster.com
> http://www.dotnetmonster.com/Uwe/Forums.aspx/asp-net/200608/1
>