S
Spydrlink
I've been looking everywhere and can't seem to find a straight answer
so I'm hoping someone here can give me some specific code with a
straight answer.
Here's what I need to do...don't have any flexibility in this either
so I have to make this work:
1) I'm trying to use ServerXMLHTTP to check for the existence of
an .mp3 file from a remote server
2) If it exists then grab the file.
3) Copy that .mp3 file to another remote server (If ServerXMLHTTP can
do that, great, if not, I'm cool with FSO).
Now, I don't have the read part yet, but I'm still having problems
with the other parts. Here's what I have so far that is not working:
dim strMP3File, objXMLHTTP
Set objXMLHTTP = Server.CreateObject("Msxml2.ServerXMLHTTP")
objXMLHTTP.Open "GET", "http://somepath.com/somefile.mp3", False '
objXMLHTTP.Send
strMP3File = objXMLHTTP.responseBody
Dim objFSO, objFile
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
objFSO.CopyFile strMP3File, "\\somepath\somefolder\"
Set objFSO = Nothing
objXMLHTTP.Close
Set objXMLHTTP = Nothing
so I'm hoping someone here can give me some specific code with a
straight answer.
Here's what I need to do...don't have any flexibility in this either
so I have to make this work:
1) I'm trying to use ServerXMLHTTP to check for the existence of
an .mp3 file from a remote server
2) If it exists then grab the file.
3) Copy that .mp3 file to another remote server (If ServerXMLHTTP can
do that, great, if not, I'm cool with FSO).
Now, I don't have the read part yet, but I'm still having problems
with the other parts. Here's what I have so far that is not working:
dim strMP3File, objXMLHTTP
Set objXMLHTTP = Server.CreateObject("Msxml2.ServerXMLHTTP")
objXMLHTTP.Open "GET", "http://somepath.com/somefile.mp3", False '
objXMLHTTP.Send
strMP3File = objXMLHTTP.responseBody
Dim objFSO, objFile
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
objFSO.CopyFile strMP3File, "\\somepath\somefolder\"
Set objFSO = Nothing
objXMLHTTP.Close
Set objXMLHTTP = Nothing