Article View: news.software.readers
Article #3888Re: Writing a Rexx Newsreader... Is XHDR a 'standard' extension?
From: Doug Sewell
Date: Wed, 14 Apr 1993 15:56
Date: Wed, 14 Apr 1993 15:56
52 lines
3202 bytes
3202 bytes
Albert Crosby (acrosby@uafhp..uark.edu) wrote: : I'm working on a newsreder for OS/2 written in REXX. Our local nntp server is : version 1.5.10. : I'm planning to use the XHDR command fairly heavily at this point, since the : server supports it. Can I depend on this extension being available pretty : much universally, or should I check for it? Technically, you should check for it. The easiest way is to do it is to issue an 'XHDR' at the beginning of the session, and watch the response codes. '500' indicates it's an unimplemented command, and '501' indicates syntax error (appropriate since you didn't specify a header name). That syntax error says that it works. Incidentally, Trumpet didn't check for it, it just assumed that it was there. It may handle it right now, by checking and using 'HEAD' commands as an alternative. XHDR can be a costly command with the reference version of NNTP. With INN 1.3 and up and the NOV databases, it's pretty cheap (Ed Rynes of CWRU told me that the XHDR-via-NOV cut his nntp-server load by 1/2, and it's hosting all of the Cleveland Free-Net users). Speaking of INN, you'd be wise to pass a 'MODE READER' command to the news-server. a '500' response indicates that INN isn't at the other end, but a reference nntpd or some other implementation. '200' indicates posting allowed, '201' indicates no posting, and '502' indicates that access is denied. In the case of a 200 or 201, it should replace the initial value received from the server. : Also, is that the current version of the NNTP server? Reference implementation of NNTP is 1.5.11. InterNetNews (INN) is 1.4. : Another question: is there a list of 'basic' features that I should include : in my newsreader? As a first effort, I want to keep it simple to program and : reasonably simple to use.... If you have access to a VM system, check out 'NNR', a CMS newsreader using RXSOCKET, REXX, and XEDIT to read and post news, reply to articles by mail, and mail an article to someone else. The sources (available via ftp from rusmv1.rus.uni-stuttgart.de or 129.69.1.12, in /soft/kommunikation/news/ beginner/software/nnr) are almost exclusively REXX, so you can get some ideas, even from just the user's guide. -- Doug Sewell, Tech Support, Computer Center, Youngstown State University doug@cc.ysu.edu doug@ysub.bitnet <internet>!cc.ysu.edu!doug uuencode bunny.dropping < core | mail jp@tygra.michigan.com
Technical Details
Message-ID:
<1qhc78$ifa@news.ysu.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!ira.uka.de!math.fu-berlin.de!nigel.msen.com!caen!malgudi.oar.net!news.ysu.edu!dougReferences:
<1qh9rl$7fe@moe.ksu.ksu.edu>Show Full Headers
Complete Article Headers
Message-ID: <1qhc78$ifa@news.ysu.edu> Subject: Re: Writing a Rexx Newsreader... Is XHDR a 'standard' extension? Date: Wed, 14 Apr 1993 15:56:24 +0000 From: doug@cc.ysu.edu (Doug Sewell) References: <1qh9rl$7fe@moe.ksu.ksu.edu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!ira.uka.de!math.fu-berlin.de!nigel.msen.com!caen!malgudi.oar.net!news.ysu.edu!doug Newsgroups: news.software.readers Organization: Youngstown State University Lines: 52 NNTP-Posting-Host: unix1.cc.ysu.edu X-Newsreader: TIN [version 1.1 PL9]