November 22nd, 2010, 06:37 AM
file upload using wininet
I am using wininet to upload a file to a server.The server side is a PHP script.
The client side and server side is similar to that described in this link:
I file gets uploaded with text "file contents here"(the sample text shown in the thread).
How can I give the actual contents in place of that(i m a newbie in VC++)?
And i want to do this in Unicode build since this code is to compiled as a smart device dll to be used in a windows mobile.
I file contents should contain the mime boundary and all the details shown in the variable frmdata in the sample,followed by actual contents of the given file and then end with the mime boundary.
ie,I want to append the three parts and assign it to a single variable and then pass the variable to the HttpSendRequest.
Please provide code for passing (reading)the contents of the file along with mime with the given mime details to the HttpSendRequest().
thanks in advance.
November 23rd, 2010, 02:29 AM
Re: file upload using wininet
please give me sample for uploading text file to a server using wininet and http post
Tags for this Thread
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!