Note that there are some explanatory texts on larger screens.

plurals
  1. POServerXMLHTTP request returing data but not returning url of final page after 301 redirection
    text
    copied!<p>I am trying to make LINK FINDER app in ASP<br> <em>It working is divided into 5 step</em> </p> <ol> <li>Send http request to server at www.foo.com</li> <li>Check status of request</li> <li>If its 200 then move to step 4 otherwise show error</li> <li>Parse all link</li> <li><em><code>Send http request to server to parsed link</code></em></li> </ol> <p><em><strong>I am able to do first 4 step, But facing challenge in 5th step</em></strong> </p> <p>I am getting 3 type of links </p> <p>1.)absolute link : <a href="http://www.foo.com/file.asp" rel="nofollow">http://www.foo.com/file.asp</a><br> 2.)links from root directory, which need domain name eg /folder2/file2.asp<br> 3.)relative link : <strong>../file3.asp</strong></p> <h1><strong>Challenge</strong></h1> <p>When I am requesting <em>www.foo.com</em> , which is <strong>301 redirected</strong> to <em>www.foo.com/folder3/folder3/file3.asp</em> </p> <p><em><strong>I am getting html content of redirected page, But don't get redirected url and not able to check 3rd type of links</em></strong></p> <p>Using following code </p> <blockquote> <pre><code>Set ServerXmlHttp = Server.CreateObject("MSXML2.ServerXMLHTTP.6.0") ServerXmlHttp.open "GET", "http://www.foo.com" ServerXmlHttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded" ServerXmlHttp.send PostData If ServerXmlHttp.status = 200 Then //My CODE </code></pre> </blockquote> <p>Hope for quick response... or any other idea for link finder in asp , vb.net</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload