Hello
When I use MSXML to search on a website, I can't extract the destination URL.
In using Internet Explorer I could easily use IEObj.LocationURL to have the url.
I know some websites create specific query type url but I have to use this code in many websites and need to know a general way to extract destination url.
I searched the whole internet but I didn't find the answer. I really need this so please let me know any ideas for this.
Thank you very much
When I use MSXML to search on a website, I can't extract the destination URL.
In using Internet Explorer I could easily use IEObj.LocationURL to have the url.
I know some websites create specific query type url but I have to use this code in many websites and need to know a general way to extract destination url.
I searched the whole internet but I didn't find the answer. I really need this so please let me know any ideas for this.
Thank you very much
VBA Code:
Sub test()
Dim req As New XMLHTTP60
Dim html As New HTMLDocument
Dim reqBody As String
req.Open "POST", "https://www.imdb.com/search/title", False
req.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
req.send "realm=title&title=john+wick&release_date-min=2018-01-01&genres=action"
If req.Status = 200 Then
html.body.innerHTML = req.responseText
End If
End Sub