Sei fuori strada. Prova così:
codice:
Function GetBinaryUrl(Url)
Dim Http
Set Http = Server.CreateObject("Microsoft.XMLHTTP")
Http.open "GET",Url,False
Http.Send()
GetBinaryUrl = Http.ResponseBody
Set Http=Nothing
End Function
Function SaveUrlIn(Folder,Url)
Dim LocalPath,FileName
Set Stream = Server.CreateObject("ADODB.Stream")
Stream.Type=1
Stream.Open()
Stream.Write GetBinaryUrl(Url)
Url = Replace(Url,"/","\")
FileName = Mid(Url,InStrRev("\")+1)
On error resume next
LocalPath = Server.MapPath("Folder") & "\" & FileName
If err.Number<>0 then LocalPath = Folder & "\" & FileName
On error goto 0
LocalPath = Replace(LocalPath,"\\","\")
Stream.SaveToFile LocalPath,2
Stream.Close()
Set Stream = Nothing
End Function
SaveUrlIn "c:\","http://adorocinema.cidadeinternet.com.br/
filmes/monge-a-prova-de-balas/monge-a-prova-de-balas-poster01.jpg"