🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #5553

Re: TServerSocket -> WebPage

#5553
From: Remy Lebeau (TeamB)
Date: Wed, 04 Aug 2004 17:16
29 lines
1781 bytes
"Jo�o Pereira" <joao@pupula.com> wrote in message
news:4110d343$1@newsgroups.borland.com...

> I've tryed this code:
<snip>

That code is nowhere near what web browsers require.

> but in IE the image just loads about 90% and i gotta press
> stop to see the image. Seems like i got to send the stream size,
> but how can i do that?

I strongly suggest you read the HTTP RFCs.  They tell you what all is
actually required:

    Hypertext Transfer Protocol version 1.0 (HTTP/1.0)
    http://www.ietf.org/rfc/rfc1945.txt

    Hypertext Transfer Protocol version 1.1 (HTTP/1.1)
    http://www.ietf.org/rfc/rfc2616.txt

I should warn you, though - HTTP is not trivial to implement properly.  I
suggest you get a pre-made HTTP server component, such as the one from Indy
(http://www.indyproject.org) or ICS (http://www.overbyte.be), and let it do
all the bulk of the work for you.


Gambit
Technical Details
Message-ID: <411119b6$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4110d343$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,17d6b73752afed17
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <4110d343$1@newsgroups.borland.com>
Subject: Re: TServerSocket -> WebPage 
Date: Wed, 4 Aug 2004 10:16:28 -0700
Lines: 31
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <411119b6$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1091639734 68.69.17.41 (4 Aug 2004 10:15:34 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail