Avatar of mizetreestump1
mizetreestump1Flag for United States of America asked on

where can I obtain winhttp 5.1 SDK for developing VB6 applications for my Win XP development machine?

I have looked all over and cannot find Winhttp 5.1 SDk for installation and use on my VB6 development machine.  Apparently it comes bundled with XP which I am using, and I see the winhttp.dll in the system32 folder, but in the VB6 IDE, I cannot add this component, get an error "could not add component" despite it finds the dll and shows the description "Microsoft WinHTTP Services, version 5.1" in the components tab when I browse to the winhttp.dll file.  I wish to use a code posting by PaulHews to automatically log into a web page and get web page data programmatically using VB6 but can't even get past adding winhttp to my project
Visual Basic Classic

Avatar of undefined
Last Comment

8/22/2022 - Mon

WinHTTP 5.1 is part of Windows XP SP1 and later, as well as W2K sp3 and later.  It shows in the references as:

Microsoft WinHTTP Service, version 5.1

If you don't have this reference, try adding the reference by clicking the browse button and navigating to <windows>system32\winhttp.dll


That was exactly what I tried.  When I find the winhttp.dll file in the windows/system32 directory, and click OPEN, it DOES appear in my VB6 IDE list of components with the title "Microsoft WinHTTP Service, version 5.1" but when I click APPLY to add the icons to my toolbox, I get a generic error that the dll could not be loaded (screen shot attached).  I checked the dll file to make sure it was not read only, can't figure out why I cannot add this component.  I found your http digest code posting and dummy me cannot even get past the initial loading of winhttp reference !!!

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question

That worked.   I've been a VB6 programmer for almost 10 years (with no formal training) , and never knew about adding a Reference to dll's.  That worked and I am on my way to play with the code snippet - Thanks a lot.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy

Thanks.  I hope I submitted your 50 points correctly - just joined EE today

>Thanks. I hope I submitted your 50 points correctly - just joined EE today

Well, thanks for the points and welcome to the site.  :)