Author |
Topic  |
MaD2ko0l
Senior Member
   
United Kingdom
1053 Posts |
Posted - 24 May 2007 : 19:18:53
|
hows this thing going? did u figuare it out? |
© 1999-2010 MaD2ko0l |
 |
|
kolucoms6
Average Member
  
845 Posts |
Posted - 24 May 2007 : 20:49:05
|
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... |
 |
|
tribaliztic
Senior Member
   
Sweden
1532 Posts |
|
kolucoms6
Average Member
  
845 Posts |
Posted - 30 May 2007 : 07:24:19
|
"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 ?
|
 |
|
kolucoms6
Average Member
  
845 Posts |
Posted - 30 May 2007 : 07:35:48
|
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). |
 |
|
Podge
Support Moderator
    
Ireland
3776 Posts |
|
kolucoms6
Average Member
  
845 Posts |
Posted - 30 May 2007 : 07:58:35
|
Yes
3 files to 3 different server.
|
 |
|
Podge
Support Moderator
    
Ireland
3776 Posts |
|
kolucoms6
Average Member
  
845 Posts |
Posted - 30 May 2007 : 09:40:53
|
Simple text files.
But XMLHttp confused me ... Sorry never worked with it.. |
 |
|
Podge
Support Moderator
    
Ireland
3776 Posts |
|
kolucoms6
Average Member
  
845 Posts |
Posted - 30 May 2007 : 13:05:19
|
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 |
 |
|
Podge
Support Moderator
    
Ireland
3776 Posts |
Posted - 30 May 2007 : 13:28:58
|
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 |
 |
|
Podge
Support Moderator
    
Ireland
3776 Posts |
|
kolucoms6
Average Member
  
845 Posts |
Posted - 30 May 2007 : 13:58:50
|
Yes as 3rd party servers are secured server and it requires username and password before we can upload file. |
 |
|
Podge
Support Moderator
    
Ireland
3776 Posts |
|
Topic  |
|