I need to POST data via HTTP to an ASP page. The data is small text files about 1.2 K in size. I’m using the TCP primitives to open a connection to the web site, and transmit what I think is the POST data, but the site will not recognize the transmission as a valid data file. After the POST attempt, I can read the contents of the site through another .ASP page and see that the data is not there.
I know that the upload ASP page works because we have a web page that can be used to manually upload files. Here’s a snippet of HTML that will transmit the data successfully:
<form enctype="multipart/form-data" method="post" action="upload_action.asp?dir=files">
<input type="file" name="file1" size=50>
I need to either structure a POST header in terms of Content-Type, Content-Disposition, etc, or find a way to replicate this action through ActiveX. I chose to work with the TCP primitives because I want this action to be invisible to my users. I'd like to make this method work, but I need to get this done quickly. I've tried to find the solution through our web developer, but I think that .ASP and Labview are so far removed, that he doesn't understand what I'm looking for. Any help would be appreciated.
Regards,
Phil Blaze