🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
2 messages
2 total messages Started by Fred J. LeFevre Thu, 03 Jun 1999 00:00
Article text in textual response question.
#37809
Author: Fred J. LeFevre
Date: Thu, 03 Jun 1999 00:00
43 lines
1708 bytes
I have a question about how a news server would send text in an article.

Assume an articles' text is:    Here's my text.\n\n\nEnd of text.

Just to be clear, I mean to say the text displayed would appear as:
Here's my text.
<blank line>
<blank line>
End of text.

Would the textual responses sent to the client appear as one of the
three alternatives below?

Alternative 1:
Here's my text.\n\n\nEnd of text.\r\n

Alternative 2:
Here's my text.\n\r\n
\n\r\n
\n\r\n
End of text.\r\n

Alternative 3:
Here's my text.\r\n
\r\n
\r\n
End of text.\r\n


Or is ther any other way this would be sent?

A separate email response to me would be greatly appreciated.

--
------------------------------------------------------------------------
-------------
Fred J. LeFevre                                 FJFevre@ibm.net
6307 Hammel Avenue                        (513) 631-7881
Cincinnati, Ohio 45237-4905



Re: Article text in textual response question.
#37808
Author: Curt Welch
Date: Thu, 03 Jun 1999 00:00
36 lines
1743 bytes
[also e-mailed to Fred since that's what he asked for...]

"Fred J. LeFevre" <fjfevre@ibm.net> wrote:
> I have a question about how a news server would send text in an article.
>
> Assume an articles' text is:    Here's my text.\n\n\nEnd of text.

> Would the textual responses sent to the client appear as one of the
> three alternatives below?

Yes.

> Alternative 3:
> Here's my text.\r\n
> \r\n
> \r\n
> End of text.\r\n

Yes.

Assuming you are talking about what the article looks like as it's
sent with the NNTP protocol.  Each line ends with a CR LF so
the data stream would look like:

Here's my text.\r\n\r\n\r\nEnd of text.\r\n

Some Unix servers still store text in the Unix format so
on those systems, it would look like a standard Unix text file:

Here's my text.\n\n\nEnd of text.\n

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads