I am implementing broken link checker( site crawler)funcation.Basically modified Tarun's link check function.
Thanks Tarun for sharing your knowledge .
Website I am testing has some external links like cnn, morningstar etc. I would like to check these links just with http GET and POST method instead of opening the link.
Started with this code but not getting status code
Set objhttp = CreateObject("MSXML2.XMLhttp.8.0")
Call objhttp.Open("GET", strActlURL, false)
httpstatus = objhttp.Status
Perhaps you could try using the IE object instead. Here's an example:
<font class="small">Code:</font><hr /><pre>set objHttp = CreateObject("InternetExplorer.Application")
objHttp.Visible = false
for x = 1 to 10
this = objHttp.StatusText
if this = "Done" then
set objHttp = nothing</pre><hr />
A good rule of thumb is to never measure with your thumb.