🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
6 messages
6 total messages Started by Florian v. Savigny Thu, 16 Nov 2000 00:00
XHDR command: bizarre answers from server?
#49079
Author: Florian v. Savigny
Date: Thu, 16 Nov 2000 00:00
34 lines
2187 bytes
I am using the Perl Net::NNTP Module, and when using the xhdr
method, I get bizarre answers from the newsserver. Here is
the debugging information that Net::NNTP outputs:


Net::NNTP=GLOB(0x8211f18)>>> XHDR References <5n8f0t8h5e62ifcufm8qnnegv123veoeub@4ax.com>
Net::NNTP=GLOB(0x8211f18)<<< 221 0 References header of article <5n8f0t8h5e62ifcufm8qnnegv123veoeub@4ax.com>.

This is what it says all the time, implying (to me) that there is no
Reference line in the article -- which definitely is not the case, as
there *are* follow-ups in the groups tested. Furthermore, the program
DOES get the content of the "Reference:" lines (I asked it to output
it).

RFC 2980 says:

   Successful responses start with a 221 response followed by a the
   matched headers from all matched messages.  Each line containing
   matched headers returned by the server has an article number (or
   message ID, if a message ID was specified in the command), then one
   or more spaces, then the value of the requested header in that
   article.  Once the output is complete, a period is sent on a line
   by itself.

Now, does the server lie about what it is doing? Or is this a bug
in Net::NNTP's debugging feature?
		
Has anyone had this trouble before?
							Florian von Savigny
____________________________________________________________________________
fsavigny@onlinehome.de

Re: XHDR command: bizarre answers from server?
#49076
Author: Jeremy
Date: Thu, 16 Nov 2000 00:00
21 lines
1377 bytes
Florian v. Savigny <fsavigny@onlinehome.de> wrote:

> Net::NNTP=GLOB(0x8211f18)>>> XHDR References
> <5n8f0t8h5e62ifcufm8qnnegv123veoeub@4ax.com>
> Net::NNTP=GLOB(0x8211f18)<<< 221 0 References header of article
> <5n8f0t8h5e62ifcufm8qnnegv123veoeub@4ax.com>.
> 
> This is what it says all the time, implying (to me) that there is no
> Reference line in the article -- which definitely is not the case, as
> there *are* follow-ups in the groups tested. Furthermore, the program
> DOES get the content of the "Reference:" lines (I asked it to output
> it).

So... you're asking for the references header, and getting it... what
is the problem, exactly?  Perhaps I'm not understanding the question.
What leads you to believe there is no references header?

-- 
Jeremy  |  jeremy@exit109.com

Re: XHDR command: bizarre answers from server?
#49085
Author: Andrew Gierth
Date: Fri, 17 Nov 2000 00:00
23 lines
1678 bytes
>>>>> "Florian" == Florian v Savigny <fsavigny@onlinehome.de> writes:

 Florian> I am getting it, and my script works with it. I am just
 Florian> wondering about the servers answer, which does not seem to
 Florian> comply with the RFC.

the RFC doesn't specify the format of the 221 line (and in any case,
the only part of any such response which is ever defined is the status
code itself and any parameter values, the text is always arbitrary).

 Florian> Or else, whether the Perl module is hiding part of the
 Florian> answer.

the Perl module doesn't show the actual data returned in multiline
responses.

If you want to see exactly what's going on, then just telnet to the
server yourself and issue the commands manually.

-- 
Andrew.

Re: XHDR command: bizarre answers from server?
#49087
Author: Florian v. Savigny
Date: Fri, 17 Nov 2000 00:00
20 lines
1695 bytes
Jeremy <jeremy@exit109.com> writes:

> So... you're asking for the references header, and getting it... what
> is the problem, exactly?  Perhaps I'm not understanding the question.
> What leads you to believe there is no references header?

I am getting it, and my script works with it. I am just wondering
about the servers answer, which does not seem to comply with the 
RFC. Or else, whether the Perl module is hiding part of the answer.

I am sorry, the question may seem purely academic (and as I think about
it, it seems likely that Net::NNTP's report mechanism is the culprit).

However, thanks a lot for asking!
                                                            Florian von Savigny
_______________________________________________________________________________
fsavigny@onlinehome.de

Re: XHDR command: bizarre answers from server?
#49094
Author: Jeremy
Date: Fri, 17 Nov 2000 00:00
16 lines
1271 bytes
Florian v. Savigny <fsavigny@onlinehome.de> wrote:

> I am getting it, and my script works with it. I am just wondering
> about the servers answer, which does not seem to comply with the 
> RFC. Or else, whether the Perl module is hiding part of the answer.

The RFC only specifies that you get a 221 response code, it doesn't seem
to say anything about what comes after it.  Or do you mean, it's hiding
the actual *content* of the reply, the header lines themselves?  That's
pretty common, that debugging will only show the commands and responses,
and not the bodies of the responses.

-- 
Jeremy  |  jeremy@exit109.com

Re: XHDR command: bizarre answers from server?
#49108
Author: Florian v. Savigny
Date: Sun, 19 Nov 2000 00:00
16 lines
1420 bytes
Andrew Gierth <andrew@erlenstar.demon.co.uk> writes:

> If you want to see exactly what's going on, then just telnet to the
> server yourself and issue the commands manually.

Oh, thanks, that's a great idea.

Thanks to you and to Jeremy also; both of you understood me well.


                                                            Florian von Savigny
_______________________________________________________________________________
fsavigny@onlinehome.de

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