Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Hiding file address on a server in links
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Hiding file address on a server in links

 Post Reply Post Reply Page  <12
Author
moti View Drop Down
Groupie
Groupie


Joined: 07 September 2004
Status: Offline
Points: 73
Post Options Post Options   Thanks (0) Thanks(0)   Quote moti Quote  Post ReplyReply Direct Link To This Post Posted: 07 March 2005 at 10:51am
another problem
 
With this scripts the Resume not supported for downloads
and another thing is this download can`t be downloaded via a download manager like DAP
 
so is there any way to solve above problems
?
 
Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 07 March 2005 at 11:16am
That's usually controlled by your web server, not asp as asp does not actually send the headers to the browser
Back to Top
moti View Drop Down
Groupie
Groupie


Joined: 07 September 2004
Status: Offline
Points: 73
Post Options Post Options   Thanks (0) Thanks(0)   Quote moti Quote  Post ReplyReply Direct Link To This Post Posted: 07 March 2005 at 11:47am

so there is not anyway?

but what about this
 
 
this link support resume and can be downloaded via Download manager
 
??
Back to Top
barnum64 View Drop Down
Newbie
Newbie


Joined: 19 March 2005
Location: Italy
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote barnum64 Quote  Post ReplyReply Direct Link To This Post Posted: 19 March 2005 at 10:56am
Please help me, I simply have to download a bunch of logfiles from a REMOTE WebSite in txt format when i launch a script. I use this code...
 
<%
ciclo=0
cicli=enddate1-startdate1+1
'Response.Write "<br>"
'Response.Write cicli
FileName = filtro + ".txt"
For ciclo = 0 to cicli
 
  strYear = Mid(startdate1, 7)
  strMonth = Mid(startdate1, 4, 2)
  strDay = Left(startdate1, 2)
  stringa = (strYear & strMonth & strDay)
  fileURL = "http://xxx.xxx.xxx/logs/" & stringa & ".txt"
  hdFileName = hdLocation+stringa+FileName
  Response.Buffer = True
  Set xmlHTTP = Server.CreateObject("Microsoft.XMLHTTP")
 
  xmlHTTP.open "GET", fileURL, False
  xmlHTTP.Send ""
  Response.Flush
 
  set myStream = CreateObject("ADODB.Stream")
  myStream.Open
  myStream.Type = 1
  myStream.Write xmlHTTP.ResponseBody
  myStream.Position = 0    'Posizione iniziale di stream
  
  set FSO = Createobject("Scripting.FileSystemObject")
  if fso.Fileexists(hdFileName) then Fso.DeleteFile hdFileName
  set FSO = Nothing
  myStream.SaveToFile hdFileName
  myStream.Close
  Set myStream = Nothing
  Set xmlHTTP = Nothing
  startdate1=startdate1+1
  Response.Write "<br>"
  Response.Write startdate1
next
Response.Flush
%>
 
...everything works fine but there is a simpler method to do it or to copy txt files from a remote webserver to local disk?


Edited by barnum64 - 19 March 2005 at 1:41pm
Back to Top
 Post Reply Post Reply Page  <12

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.