Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

access mirror site using java, download files and other information?

Status
Not open for further replies.

ankursaxena

Programmer
Sep 7, 2001
133
US
Hi, I have 2 nodes/servers on the system both running webservers and having the same interface, but at a time user will access one node at a time from their browser, but this interface will be able to allow the user to get information from the both the nodes. the information that the user can get is DB stored as well as files on the disk of either node.

i can manage the DB, cuz there is nothing to it, but how do I get files from the other node?

currently any files/web documents are all stored in a application directory of the web root and protected by htaccess i believe, so when a user logs on to node one he can access all plain text/binary files along with web content since the web server authorizes the user to access anything in that dir. but at the same time from the same session I want to be able to access files in a mirror site using the same username and password and not having him to enter it again. the username/pass combo is replicated on both the servers, it this possible?

currently i use the http password protection provided by apache to access one node, but can i use the same session on another machine with the same credentials?

If this is not possible how can i do this programatically using java? can i do can "ls" on the directory i want on another server and display the list to the user and then when he clicks on that file name i fetch it from the backup/mirror server and have him save it using http or ftp?

It would be great if we can get a solution to this.

Thank you very much in advance.

Ankur
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top