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", "", False
docDocument.body.innerHTML = htpRequest.responseText

Open in new window

Jez Walters
Business Data Analyst

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

Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros