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
    Posts
    3

    file upload using wininet

    Hi,
    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:
    http://efreedom.com/Question/1-19853...ile-Using-HTTP
    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
    Posts
    3

    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
  •  





Click Here to Expand Forum to Full Width

Featured