sythoos / jRecorder

jQuery Recorder
http://www.sajithmr.me/jrecorder/
139 stars 73 forks source link

How to save via Classic-ASP #17

Closed therbta closed 3 years ago

therbta commented 6 years ago
data = Request.QueryString("filename")
set xmlhttp = Server.CreateObject("Msxml2.ServerXMLHTTP.6.0") 
xmlhttp.open "GET", data, false 
xmlhttp.send
With Server.CreateObject("Adodb.Stream")
    .Type = 1 '1 for binary stream
    .Open
    .Write xmlhttp.responseBody
    .SaveToFile Server.Mappath("hello.wav"), 2 ' 2 for overwrite
    .Close
End With
set xmlhttp = nothing