[Courses] How to get line-information from buffer..

Abel Pires da Silva lybel_2000 at yahoo.com
Sun Sep 29 22:07:40 EST 2002


I got a buffer contents like below:

GET / HTTP/1.0
Connection: Keep-Alive
User-Agent: Mozilla/4.75 [en] (X11; U; Linux
2.2.17-21mdk i686)
Host: localhost:8000
Accept: image/gif, image/x-xbitmap, image/jpeg,
image/pjpeg, image/png, */*
Accept-Encoding: gzip
Accept-Language: en
Accept-Charset: iso-8859-1,*,utf-8

And I only interested to the fourth line of the
message (host information), so I can make a string
comparation with the list of addresses that I store in
file.

How can I read/retrieve only the fourth line of the
above format?

Or, is there any better way to do the comparation?
Regards,
Abel

__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com



More information about the Courses mailing list