Upload a file to your Web via HTTP. Now supporting binary files

By | 2002-06-01

This code uploads a file to an ASP script using http post. It can be used to automatically upload files without user interaction, e.g. when you want to publish some data to your Web site periodically.
There are lots of code excerpts around describing the receiving side but the sending side is mostly an HTML page containing INPUT TYPE=”File” … Simulating this by code requires some knowledge of HTTP Post and Mime.
Find the full project and the ASP in the ZIP.
New!!! Now shows how to upload a .gif file. Other binary files work similar.

Original Author: Klemens Schmid

Assumptions

The project uses the XMLHTTPRequest object in Microsoft XML 3.0. The version 2.0 didn’t work for this.

Attachments

FileUploadedSize
Upload a f210366112001.zip9/3/2020 3:45:00 PM4054
Author: dwirch

Derek Wirch is a seasoned IT professional with an impressive career dating back to 1986. He brings a wealth of knowledge and hands-on experience that is invaluable to those embarking on their journey in the tech industry.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.