Article View: news.software.nntp
Article #55859Re: Forecasting the posting's size
From: Joshua
Date: Thu, 03 Jan 2002 04:29
Date: Thu, 03 Jan 2002 04:29
44 lines
2726 bytes
2726 bytes
"Curt Welch" <curt@kcwc.com> wrote in message news:20020101154241.937$wO@newsreader.com... > "Joshua" <JoshuaIIII@hotmail.com> wrote: > > said that POST data will contain nulls,but I never > > find them. > > They are not normal, and normally should not be sent, but they > do happen. You could should deal with the problem in an > intelligent manner. Truncating the posting at the first null > is not an intelligent manner. Did you mean that only "CRLF.CRLF" should be treated as the *exclusive* sign for ending the input stream? > If you want to see one in real life, check out > <3c321de3$0$75161$ba620e4c@news.skynet.be>. It ends with a string of NULLs. > It also contains CRs as well which are not part of the CR LF EOL markers. OK,I will check it. > > Must I search the *whole* input data string for <CRLF>.<CRLF> > > as the terminator? I think ...after all,it is a little bit unsuitable ... > > You MUST check out the whole input data string. > > > I only get and save what the client sends. I know dot escaping format,but > > I keep them either receiving from clients or send back to clients. > > That's a valid way to deal with the issue. Though it wouldn't hurt to > check for a line beginning with a single DOT and reject the POST as > invalid. > > -- > Curt Welch http://CurtWelch.Com/ > curt@kcwc.com Webmaster for http://NewsReader.Com/
Technical Details
Message-ID:
<a11j30$sba$1@mail.cn99.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.mbox.zip!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news-peer-west.sprintlink.net!news.sprintlink.net!enews.sgi.com!news-out.spamkiller.net!propagator-la!news-in-la.newsfeeds.com!news-in.superfeed.net!news.cn99.com!not-for-mailReferences:
<a0mi6f$qqr$1@mail.cn99.com> <20011230161737.549$XI@newsreader.com> <a0o95h$or9$1@mail.cn99.com> <20011230215952.153$nt@newsreader.com> <a0sldf$457$1@mail.cn99.com> <20020101154241.937$wO@newsreader.com>Show Full Headers
Complete Article Headers
Message-ID: <a11j30$sba$1@mail.cn99.com> Subject: Re: Forecasting the posting's size Date: Thu, 3 Jan 2002 12:29:30 +0800 From: "Joshua" <JoshuaIIII@hotmail.com> References: <a0mi6f$qqr$1@mail.cn99.com> <20011230161737.549$XI@newsreader.com> <a0o95h$or9$1@mail.cn99.com> <20011230215952.153$nt@newsreader.com> <a0sldf$457$1@mail.cn99.com> <20020101154241.937$wO@newsreader.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.mbox.zip!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news-peer-west.sprintlink.net!news.sprintlink.net!enews.sgi.com!news-out.spamkiller.net!propagator-la!news-in-la.newsfeeds.com!news-in.superfeed.net!news.cn99.com!not-for-mail Newsgroups: news.software.nntp Organization: Bentium Ltd. (CN99) Lines: 43 NNTP-Posting-Host: 61.156.77.70 X-Trace: mail.cn99.com 1010061217 29034 61.156.77.70 (3 Jan 2002 12:33:37 GMT) X-Complaints-To: usenet@news.cn99.com NNTP-Posting-Date: Thu, 3 Jan 2002 12:33:37 +0000 (UTC) X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200