Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Parsing HTML returned in WinHttpRequest.ResponseText

Avatar of Jez Walters
Jez WaltersFlag for United Kingdom of Great Britain and Northern Ireland asked on
Microsoft AccessVB Script
4 Comments1 Solution4642 ViewsLast Modified:
I've successfully used the Microsoft WinHTTP Services library to log in to a website and then GET a particular page I'm interested in, however the returned ResponseText is just a massive string.  I can obviously write code to parse this text, but I have a feeling that the Microsoft HTML Object Library might be able to do a lot of the leg work for me.

I've had a go loading the HTMLDocument (see below), but I'm not sufficently familiar with the DOM object model to know if this is the right approach - or more importantly how to extract the anchors I want from the returned page.

Any ideas?
Dim htpRequest As WinHttp.WinHttpRequest
Dim docDocument As MSHTML.HTMLDocument

htpRequest.Open "GET", "http://www.mywebsite.com/mypage.asp", False
docDocument.body.innerHTML = htpRequest.responseText
Avatar of Jez Walters
Jez WaltersFlag of United Kingdom of Great Britain and Northern Ireland imageBusiness Data Analyst

Our community of experts have been thoroughly vetted for their expertise and industry experience.

This problem has been solved!
Unlock 1 Answer and 4 Comments.
See Answers