🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #71831

Re: NNTP posting headers...

#71831
From: Dr.Ruud
Date: Sat, 11 Jun 2005 18:01
24 lines
1941 bytes
Wat John Smith schreef, stond aan het
begin! van iets moois, lees maar:

>    char p[] = {'P', 'O', 'S', 'T', 13, 10};
>    char crlf[] = {13, 10, 0};
>    char end[] = {13,10, '.', 13, 10, 0};
>    char q[] = {'Q', 'U', 'I', 'T', 13, 10, 0};
>    char head[] = {'H', 'E', 'A', 'D', 13, 10};

  #define _CRLF "\r\n"

  const char *POST = "POST" _CRLF;
  const char *CRLF = _CRLF;
  const char *END  = _CRLF "." _CRLF;
  const char *QUIT = "QUIT" _CRLF;
  const char *HEAD = "HEAD" _CRLF;

The way END is set up, will often cause an extra line at the end
of the body, because the previous line already ended with CRLF.

-- 
Affijn, Ruud

Technical Details
Message-ID: <d8fgou.jg.1@news.isolution.nl>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.stueberl.de!newsgate.cistron.nl!transit3.news.xs4all.nl!post.news.xs4all.nl!rhinewceros.xs4all.nl!not-for-mail
References: <W%pqe.2023$Q_3.4102173@news.sisna.com> <874qc53ex8.fsf@windlord.stanford.edu> <NSqqe.2929$DA5.4616216@news.sisna.com> <1118460352.bdf9cb8e357df309ac11eda932577499@teranews> <7ktqe.4456$JY7.5146668@news.sisna.com>

Show Full Headers
Complete Article Headers
Message-ID: <d8fgou.jg.1@news.isolution.nl>
Subject: Re: NNTP posting headers...
Date: Sat, 11 Jun 2005 20:01:38 +0200
From: "Dr.Ruud" <rvtol+news@isolution.nl>
References: <W%pqe.2023$Q_3.4102173@news.sisna.com> <874qc53ex8.fsf@windlord.stanford.edu> <NSqqe.2929$DA5.4616216@news.sisna.com> <1118460352.bdf9cb8e357df309ac11eda932577499@teranews> <7ktqe.4456$JY7.5146668@news.sisna.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.stueberl.de!newsgate.cistron.nl!transit3.news.xs4all.nl!post.news.xs4all.nl!rhinewceros.xs4all.nl!not-for-mail
Newsgroups: news.software.nntp
Organization: Chaos rules.
X-Newsreader: WMDIYB
X-Archive-Me: please
Approved: yesterday
X-Face: &CQ$FIr!=+=w,8`0Q^Ug"1>F[(/op8->E; NQet`5fe$;
 =e*!Z5&REvp<~Tj|"Y[|8OcJ{w#z&mB7B:I)XO*%_|\]|YW$C>>$Q[9-#K~c$tQ^Mf0,wMo?h\C)TE>f
Lines: 24
NNTP-Posting-Host: 194.109.164.102
X-Trace: 1118514026 dreader18.news.xs4all.nl 36645
 [::ffff:194.109.164.102]:34797