CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2010

    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.

  2. #2
    Join Date
    Sep 2010

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.