I'm trying to get the request headers using vba. In other languages like python there is a very easy way to get that .headers. However, in case of vba I'm getting stuck.
I know though there is a way in vba to get response headers by using .getAllResponseHeaders.
How can I get request headers using vba?
This is how I got response headers:
Sub GetRequestHeaders()
Const URL$ = "https://stackoverflow.com/questions/tagged/web-scraping"
Dim Http As New XMLHTTP60, S$
With Http
.Open "GET", URL, False
.send
S = .getAllResponseHeaders
MsgBox S
End With
End Sub

