Community discussions

MikroTik App
 
baanbrekers
just joined
Topic Author
Posts: 1
Joined: Mon Jan 20, 2014 11:22 am

Check if html page exists.

Mon Jan 20, 2014 11:41 am

Is it possible in The Dude to create a probe that checks if a certain page is available? (ex. http://some.company.com/check.html) I don't want to check if port 80 is up and running I just want to check the page.

Thanks in advance!
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26381
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Re: Check if html page exists.

Mon Jan 20, 2014 11:46 am

The webserver usually will show a 404 error page, which would be the same as any other webpage. You should be checking for specific content on that page, but that is not possible, as far as I can imagine.
 
lebowski
Forum Guru
Forum Guru
Posts: 1619
Joined: Wed Aug 27, 2008 5:17 pm

Re: Check if html page exists.

Tue Jan 21, 2014 6:57 pm

You just want to prove you can receive a web page?

Create a new probe, of type TCP, agent server, in Send put the URL between the Get and HTTP/1.0\r\n\r\n. In the Recieve box put a word that exists on the web page in question. For example maybe you are grabbing the web page http://www.google.com the word "about" is on that page.

Send: GET http://www.google.com HTTP/1.0\r\n\r\n
Receive: about

You can do connect only to test if a port is open (the thing you said you don't care to test) or set the port to something other than 80 if your web server is on another port.

HTH,
Lebowski

Who is online

Users browsing this forum: No registered users and 50 guests