February 2006
Intermediate to advanced
648 pages
14h 53m
English
The nntplib module provides a low-level interface to the client side of NNTP (Network News Transfer Protocol). NNTP is described in RFC 977, which may be useful in understanding the fine detail. The module defines the following class:
NNTP(host [, port [, user [, password [, readermode [, usenetrc]]]]])
Establishes an NNTP connection with the NNTP server at host. port specifies the NNTP port and defaults to 119. user and password provide user-authentication information if required. readermode is a Boolean flag. If True, the special command “mode reader” is sent to the server before authentication. By default, readermode is False. usenetrc is a Boolean flag that reads authentication information from an .netrcfile, if present. The default ...
Read now
Unlock full access