Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 FTP using ASP
 New Topic  Topic Locked
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 3

MaD2ko0l
Senior Member

United Kingdom
1053 Posts

Posted - 24 May 2007 :  19:18:53  Show Profile  Visit MaD2ko0l's Homepage
hows this thing going? did u figuare it out?

© 1999-2010 MaD2ko0l
Go to Top of Page

kolucoms6
Average Member

845 Posts

Posted - 24 May 2007 :  20:49:05  Show Profile

No reply from KC. :-(

Also I found that my provider doesnt allow me to run CMD , soc ant upload automatically..

Now doing the same thing manually.. 3 FTPs :-((

Too time consuming...
Go to Top of Page

tribaliztic
Senior Member

Sweden
1532 Posts

Posted - 25 May 2007 :  02:58:47  Show Profile  Visit tribaliztic's Homepage  Send tribaliztic an ICQ Message
Maybe you could use this:
http://www.iisworks.com/fileman/

/Tribaliztic
- www.gotlandrace.se -
Go to Top of Page

kolucoms6
Average Member

845 Posts

Posted - 30 May 2007 :  07:24:19  Show Profile


"As my site is hosted on shared hosting server, I will not be granted with the execute CMD rights "

But they say they have ASPSMARTUPLOAD Component.

Any sample code available to uplood file from one server to another ?
Go to Top of Page

kolucoms6
Average Member

845 Posts

Posted - 30 May 2007 :  07:35:48  Show Profile

In other words :

Is it possible to upload a file from one server in which the aspsmartupload runs to another secured server(which also runs ASPSmartUpload).
Go to Top of Page

Podge
Support Moderator

Ireland
3776 Posts

Posted - 30 May 2007 :  07:48:41  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
Is the destination server always going to be the same ?


Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

kolucoms6
Average Member

845 Posts

Posted - 30 May 2007 :  07:58:35  Show Profile

Yes

3 files to 3 different server.

Go to Top of Page

Podge
Support Moderator

Ireland
3776 Posts

Posted - 30 May 2007 :  08:15:36  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
How about this as a solution - do it the opposite way.

1. User triggers the transfer of files on server 1.
2. Server1 sends a http request using the XMLHTTP component to Server 2 i.e. opens a webpage in this format http://server2/get.asp?url1=http://server1/file1.zip&url2=http://server1/file2.html&url3=http://server1/file3.asp
3. get.asp on server 2 uses the XMLHttp component to retrieve the three files and saves them using FSO wherever you like on server 2

This should work in most cases as it uses port 80 over http. Its likely that the xmlHTTP component is already installed on your server.

http://www.asptutorial.info/sscript/Accessremotepages.asp

Actually, you could probably use the xmlhttp component to post data to another page. I'll post an example if I can find one.

What kind of data are you transferring ?

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

kolucoms6
Average Member

845 Posts

Posted - 30 May 2007 :  09:40:53  Show Profile

Simple text files.

But XMLHttp confused me ... Sorry never worked with it..
Go to Top of Page

Podge
Support Moderator

Ireland
3776 Posts

Posted - 30 May 2007 :  09:48:06  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
Here's a good example of posting.

http://www.earthskater.net/devzone/asp/xmlhttp_post.asp

You could try POST-ing the files to the receiver as in the example above but I think that sending the url to the files which the receiver can retrieve is a more robust option.

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

kolucoms6
Average Member

845 Posts

Posted - 30 May 2007 :  13:05:19  Show Profile
I tried the example.

Sent 1 and get the value back..

Good One..

But any example showing how to upload a file from one server to another will definitely help.

Edited by - kolucoms6 on 30 May 2007 13:06:22
Go to Top of Page

Podge
Support Moderator

Ireland
3776 Posts

Posted - 30 May 2007 :  13:28:58  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
Assuming you have three files on server 1 called file1, file2 and file3.
You then notify receiver 1, receiver 2 and receiver 3 than file1, file2 and file 3 are ready by opening these three pages

http://receiverServer1/Receiver.asp?url=http://server1/file1.asp
http://receiverServer2/Receiver.asp?url=http://server1/file2.asp
http://receiverServer3/Receiver.asp?url=http://server1/file3.asp

None of this code is tested. Its meant for illustration purposes only.

<% 
 ' Intruduce the url you want to visit 
 'GotothisURL = "http://www.asptutorial.info"  ' not used
 ' Create the xml object 
 Set GetConnection = CreateObject("Microsoft.XMLHTTP") 
 ' Conect to specified URL 
 GetConnection.Open "get", "http://receiverServer1/Receiver.asp?url=http://server1/file1.asp", False 
 GetConnection.Send  
 ResponsePage = GetConnection.responseText 
 Response.write (ResponsePage) ' Should be "Success"
GetConnection.Open "get", "http://receiverServer1/Receiver.asp?url=http://server1/file2.asp", False 
 GetConnection.Send 
 ResponsePage = GetConnection.responseText 
 Response.write (ResponsePage) ' Should be "Success"
GetConnection.Open "get", "http://receiverServer1/Receiver.asp?url=http://server1/file3.asp", False 
 GetConnection.Send  ResponsePage = GetConnection.responseText 
 Response.write (ResponsePage) ' Should be "Success"

 Set GetConnection = Nothing 
 %>


Receiver.asp should be something similar.
<% 
 ' Intruduce the url you want to visit 
 GotothisURL = Request.QueryString("url")  
 ' Create the xml object 
 Set GetConnection = CreateObject("Microsoft.XMLHTTP") 
 ' Conect to specified URL 
 GetConnection.Open "get", GotothisURL, False 
 GetConnection.Send  

 ' ResponsePage is the response we will get when visiting GotothisURL 
 ResponsePage = GetConnection.responseText 

' Write the page as a file using the File SYstem Object Here
' Your FSO code

' We will write  
 Response.write ("Success") 

 Set GetConnection = Nothing 
 %>

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.

Edited by - Podge on 30 May 2007 13:31:49
Go to Top of Page

Podge
Support Moderator

Ireland
3776 Posts

Posted - 30 May 2007 :  13:34:13  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
Obviously you WILL need to think about security. i.e. you don't want just anyone to be able to upload files through your receiver.asp. You could request a username and password via querystring or only allow certain i.p. addresses to upload files.

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

kolucoms6
Average Member

845 Posts

Posted - 30 May 2007 :  13:58:50  Show Profile

Yes as 3rd party servers are secured server and it requires username and password before we can upload file.
Go to Top of Page

Podge
Support Moderator

Ireland
3776 Posts

Posted - 30 May 2007 :  14:22:42  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
You can supply authentication by adding the username password combination like so;

GetConnection.Open "get", "http://receiverServer1/Receiver.asp?url=http://server1/file1.asp", False, "username", "password"


Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page
Page: of 3 Previous Topic Topic Next Topic  
Previous Page | Next Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.26 seconds. Powered By: Snitz Forums 2000 Version 3.4.07