[lazarus] Sockets Linux OT
Baeseman, Cliff
Cliff.Baeseman at greenheck.com
Thu Aug 12 09:58:06 EDT 1999
Thank you Brad that helped me alot..
Cliff
-----Original Message-----
From: Brad Campbell [mailto:bcampbel at omen.net.au]
Sent: Wednesday, August 11, 1999 11:13 PM
To: lazarus at miraclec.com
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 lazarus-request at miraclec.com with
"unsubscribe" as the Subject
archives at http://www.miraclec.com/list_archives/lazarus
More information about the Lazarus
mailing list