Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 1999-08

Sockets Linux OT

6 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Curtis White
to Cliff Baeseman: Yea buddy send it to me I will modify it for my needs. I can just add the server…

I wrote it under JDK 1.1.7, but I am pretty sure will compile under any 1.1 and probably even 1.2 JDK. But not too likely under 1.0.

Curtis

On 12-Aug-99 Cliff Baeseman wrote 82 lines
Yea buddy send it to me I will modify it for my needs. I can just add the server manipulation stuff as a added feature.. ;) Thanx again... What Java version is it? Cliff -----Original Message----- From: Curtis White To: Date: Wednesday, August 11, 1999 11:03 PM Subject: RE: [lazarus] Sockets Linux OT >I can't help you much with how to do this in FPC, but if you want it, I do have >a program like this that I wrote in Java. > >Basically, you can run it in cron and it will check the status of as many >different web servers as you want and send an email notification to any number >of people on a list (or not send an email - configurable). You can also setup a >list of pager email addresses that it can send a page email to. Everything is >configurable in .conf files. You can have as many web servers as you want and >can configure all kinds of stuff for each server. It is a pretty nice program. >It is all in Java though. If you want a copy of it, let me know and I will send >it to you. > > >Curtis > >On 12-Aug-99 Cliff Baeseman wrote: >> Does anyone know how to grab a web page from a web server using free pascal >> sockets under linux. >> >> Here is what I need to do. >> >> 1. I have a server web cluster put together at work. >> >> 2. It works great but I need something that can monitor the connected web >> servers for problems. The way I need to do it is just do a simple page >> request in some code and see if I get a return from the server on a timed >> loop. >> >> 3. This utility will just then dynamically add or remove servers from the >> real server list. >> >> The contents of the page I get back from the server does not need to be >> processed I just have to know that I got it. >> >> Any Ideas? >> >> Cliff >> >> _________________________________________________________________ >> To unsubscribe: mail with >> "unsubscribe" as the Subject >> archives at http://www.miraclec.com/list_archives/lazarus > >---------------------------------- >Curtis White >Curtis White >http://www.teleport.com/~osiriz/ >---------------------------------- > >_________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.miraclec.com/list_archives/lazarus > _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

----------------------------------
Curtis White
Curtis White
http://www.teleport.com/~osiriz/
----------------------------------

Reply by email

Brad Campbell
to Cliff Baeseman: Does anyone know how to grab a web page from a web server using free pascal sockets under…
you wrote 21 lines
Does anyone know how to grab a web page from a web server using free pascal sockets under linux. Here is what I need to do. 1. I have a server web cluster put together at work. 2. It works great but I need something that can monitor the connected web servers for problems. The way I need to do it is just do a simple page request in some code and see if I get a return from the server on a timed loop. 3. This utility will just then dynamically add or remove servers from the real server list. The contents of the page I get back from the server does not need to be processed I just have to know that I got it. Any Ideas? Cliff

Yeah, try this
Open a stream connection (ie like a telnet connection) to port 80 on the server
and wait for a connection.. then send a string

GET /Filename HTTP/1.0
<Blank Line>

and the server will return the page to you.

ie for my homepage
telnet www.omen.net.au 80
<connect>
GET /~bcampbel/index.htm HTTP/1.0
<blank Line>

--------------------
spews out page here...
<disconnect>

It's that easy

Brad....

/"\
\ /
X ASCII RIBBON CAMPAIGN
/ \ AGAINST HTML MAIL

Reply by email

Curtis White
to Cliff Baeseman: Does anyone know how to grab a web page from a web server using free pascal sockets under…

I can't help you much with how to do this in FPC, but if you want it, I do have a program like this that I wrote in Java.

Basically, you can run it in cron and it will check the status of as many different web servers as you want and send an email notification to any number of people on a list (or not send an email - configurable). You can also setup a list of pager email addresses that it can send a page email to. Everything is configurable in .conf files. You can have as many web servers as you want and can configure all kinds of stuff for each server. It is a pretty nice program. It is all in Java though. If you want a copy of it, let me know and I will send it to you.

Curtis

On 12-Aug-99 Cliff Baeseman wrote 26 lines
Does anyone know how to grab a web page from a web server using free pascal sockets under linux. Here is what I need to do. 1. I have a server web cluster put together at work. 2. It works great but I need something that can monitor the connected web servers for problems. The way I need to do it is just do a simple page request in some code and see if I get a return from the server on a timed loop. 3. This utility will just then dynamically add or remove servers from the real server list. The contents of the page I get back from the server does not need to be processed I just have to know that I got it. Any Ideas? Cliff _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

----------------------------------
Curtis White
Curtis White
http://www.teleport.com/~osiriz/
----------------------------------

Reply by email

Cliff Baeseman

Yea buddy send it to me I will modify it for my needs. I can just add the server manipulation stuff as a added feature.. ;)

Thanx again... What Java version is it?

Cliff

Earlier message 71 lines
-----Original Message----- From: Curtis White To: Date: Wednesday, August 11, 1999 11:03 PM Subject: RE: [lazarus] Sockets Linux OT >I can't help you much with how to do this in FPC, but if you want it, I do have >a program like this that I wrote in Java. > >Basically, you can run it in cron and it will check the status of as many >different web servers as you want and send an email notification to any number >of people on a list (or not send an email - configurable). You can also setup a >list of pager email addresses that it can send a page email to. Everything is >configurable in .conf files. You can have as many web servers as you want and >can configure all kinds of stuff for each server. It is a pretty nice program. >It is all in Java though. If you want a copy of it, let me know and I will send >it to you. > > >Curtis > >On 12-Aug-99 Cliff Baeseman wrote: >> Does anyone know how to grab a web page from a web server using free pascal >> sockets under linux. >> >> Here is what I need to do. >> >> 1. I have a server web cluster put together at work. >> >> 2. It works great but I need something that can monitor the connected web >> servers for problems. The way I need to do it is just do a simple page >> request in some code and see if I get a return from the server on a timed >> loop. >> >> 3. This utility will just then dynamically add or remove servers from the >> real server list. >> >> The contents of the page I get back from the server does not need to be >> processed I just have to know that I got it. >> >> Any Ideas? >> >> Cliff >> >> _________________________________________________________________ >> To unsubscribe: mail with >> "unsubscribe" as the Subject >> archives at http://www.miraclec.com/list_archives/lazarus > >---------------------------------- >Curtis White >Curtis White >http://www.teleport.com/~osiriz/ >---------------------------------- > >_________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.miraclec.com/list_archives/lazarus >

Reply by email

Cliff Baeseman

Does anyone know how to grab a web page from a web server using free pascal sockets under linux.

Here is what I need to do.

1. I have a server web cluster put works great but I need something that can monitor the connected web servers for problems. The way I need to do it is just do a simple page request in some code and see if I get a return from the server on a timed loop.

3. This utility will just then dynamically add or remove servers from the real server list.

The contents of the page I get back from the server does not need to be processed I just have to know that I got it.

Any Ideas?

Cliff

Reply by email

Baeseman, Cliff

Thank you Brad that helped me alot..

Cliff

Earlier message 63 lines
-----Original Message----- From: Brad Campbell Sent: Wednesday, August 11, 1999 11:13 PM To: Subject: Re: [lazarus] Sockets Linux OT At 22:07 11/08/99 -0500, you wrote: >Does anyone know how to grab a web page from a web server using free pascal >sockets under linux. > >Here is what I need to do. > >1. I have a server web cluster put together at work. > >2. It works great but I need something that can monitor the connected web >servers for problems. The way I need to do it is just do a simple page >request in some code and see if I get a return from the server on a timed >loop. > >3. This utility will just then dynamically add or remove servers from the >real server list. > >The contents of the page I get back from the server does not need to be >processed I just have to know that I got it. > >Any Ideas? > >Cliff Yeah, try this Open a stream connection (ie like a telnet connection) to port 80 on the server and wait for a connection.. then send a string GET /Filename HTTP/1.0 <Blank Line> and the server will return the page to you. ie for my homepage telnet www.omen.net.au 80 <connect> GET /~bcampbel/index.htm HTTP/1.0 <blank Line> -------------------- spews out page here... <disconnect> It's that easy Brad.... /"\ \ / X ASCII RIBBON CAMPAIGN / \ AGAINST HTML MAIL _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email