Search code examples
javascripthtmlapixmlhttprequest

How to get an HTML source page using an HTTP GET request


I need to get the HTML source from this website: http://nextbyteindustries.com

It's a redirect to another domain: http://5linx.com

Is there anyway to send a GET request to a website and get the HTML source of the redirected website?

If no, anyway - if I sent a request to this page for example: "http://5linx.com" - how to get its HTML source while not redirecting?


Solution

  • Through ajax you cant get it. but in other way you can get it

    There is a Linux command named curl. you can do like

    curl http://5linx.com

    or you also wget