Downloading files using WinInet

Posted on 2006-05-11
Last Modified: 2010-04-24
How to download a file using HTTPS connection from a server? The file is  digitally signed by verisign CA.

I use wininet functions (CInternetFile->Read...) to download the file. But I got the signed file only. Not the original format. What are the steps I have to follow to retrieve the original format.

Question by:prabha_venkat
    LVL 49

    Accepted Solution

    Have youy looked here?
       Signing Data
    in particular,...
       Decoding Signed Data

    ...and the example C code looks to be right on point.

    Also note, that it is irrelevant whether you used WinInet to get the file or somebody sent you an email with an attachment or if somebody tied two cans together with a string and yells ones and zeros into them -- once you have the signed file, you then work with it to verify it and decrypt it.

    -- Dan
    LVL 2

    Expert Comment

    URLDownLoadToFile does that.
    LVL 49

    Expert Comment

    My comment should be considered a correct answer.

    Featured Post

    Gigs: Get Your Project Delivered by an Expert

    Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

    Join & Write a Comment

    The following diagram presents a diamond class hierarchy: As depicted, diamond inheritance denotes when two classes (e.g., CDerived1 and CDerived2), separately extending a common base class (e.g., CBase), are sub classed simultaneously by a fourt…
    In Easy String Encryption Using CryptoAPI in C++ ( I described how to encrypt text and recommended that the encrypted text be stored as a series of hexadecimal digits -- because cyphertext may…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now