Tutorials to .com

Tutorials to .com » Asp » Xml » XMLHTTP to download remote data output to the browser

XMLHTTP to download remote data output to the browser

Print View , by: iSee ,Total views: 12 ,Word Count: 260 ,Date: Wed, 22 Apr 2009 Time: 3:19 AM

Xmlhttp object the use of remote data access, and then use the binary output to the client browser, to allow customers to download data, in this case from a remote server to obtain a compact package, and provide output to the browser client to download.

-------------------------------------------------- -------------------------
Ouyang Jie Creation East (reprint, please retain this information)
QQ: 2596812 MSN: xzskyweb@hotmail.com
Welcome to http://www.cnsxml.com/ the xml for more info
-------------------------------------------------- ------------------------

Response.Buffer = True
Dim objXMLHTTP, xml
Set xml = Server.CreateObject ( "Microsoft.XMLHTTP") 'Create Object

xml.Open "GET", "http://www.4guysfromrolla.com/webtech/code/mitchell-pres.zip", False '' Set the object, the specific details of the use of xmlhttp, see: http://www.cnsxml .com / blogview.asp? logID = 273 "XMLHTTP object and its methods," a text

xml.Send 'Send the request

Response.AddHeader "Content-Disposition", "attachment; filename = mitchell-pres.zip" 'add the header to this document

Response.ContentType = "application / zip" 'Set the output type

Response.BinaryWrite xml.responseBody 'binary output to the browser

Set xml = Nothing

Asp and XML related Articles

Can't Find What You're Looking For?

Rating: 0.0


No comments posted.