How to send multipart/form-data info to a script via VC++ applicatio
Using HTML Form, I can send it to a script and then manipulate the data.
Now I want to do the same using VC++ application. To do so, I need to POST
fileName in a multipart/form-data format.
How can I do this?
Here is the CGI/HTML I use...
my $query=new CGI;
$currentConfigurationName=$query->param('mode');
if ($currentConfigurationName ne '')
{
my $uploadedFile=$query->param('formUploadedFile');
my @fileContents=<$uploadedFile>; //now I can manipulate data
}
else
{
print $query->start_multipart_form(-action=>"http://".$ENV'HTTP_HOST'}.$ENV{'SCRIPT_NAME'});
print $query->hidden (-name=>'mode', -value=>'process');
print $query->filefield (-name=>'formUploadedFile');
print $query->submit (-name=>'formSubmit', -value=>'OK');
print $query->endform();
}
And now I need to replace Form-generation-code with VC++ code.
Any suggestions?

