What do you want to do with code? Here is the bare minimum. It gives you to open and send request. Once you have access, you can play with web page as you do with IE.
Option Explicit
Sub test()
Dim HTMLdoc As Object
With CreateObject("winhttp.winhttprequest.5.1")
.Open "GET", "https://www.google.com", False
.send
If .statusText <> "OK" Then
MsgBox "ERROR" & .Status & " - " & .statusText, vbExclamation
Exit Sub
End If
Set HTMLdoc = CreateObject("HTMLfile")
HTMLdoc.body.innerHTML = .responseText
MsgBox HTMLdoc
End With
End Sub
Bookmarks