# 22. Virtuoso Functions Guide - nntp_auth_get

Chapter Contents | Prev | Next
Keyword Search:
www.openlinksw.com
docs.openlinksw.com
Book Home
Contents
Preface
Virtuoso Functions Guide
Administration
Aggregate Functions
Array Manipulation
BPEL APIs
Backup
Compression
Cursor
Date & Time Manipulation
Debug
Dictionary Manipulation
Encoding & Decoding
File Manipulation
Free Text
Hashing / Cryptographic
LDAP
Locale
Mail
mime_body
mime_part
mime_tree
nntp_auth_get
nntp_auth_post
nntp_get
nntp_post
pem_certificates_to_...
pop3_get
smime_sign
smime_verify
smtp_send
uuvalidate
Miscellaneous
Number
Remote SQL Data Source
Replication
SOAP
SQL
String
Transaction
Type Mapping
UDDI
User Defined Types & The CLR
Virtuoso Java PL API
Virtuoso Server Extension Interface (VSEI)
Web Server & Internet
XML
XPATH & XQUERY
Functions Index

## nntp_auth_get

returns information about an NNTP server with authorization
arraynntp_auth_get (in server varchar, in user varchar, in password varchar, in command varchar, in group varchar, [in first_message integer], [in last_message integer]);
Description

The nntp_auth_get() is used to retrieve messages from a server requiring authorization. See nntp_get for more information.

Parameters
server – The host to connect with. IP address or hostname:port. There is no default for port, so to connect to the standard port for NNTP, use <hostname/IP address>:119
user – The username.
password – The user password.
command – Command string. Valid values are:

- article
- body
- head
- stat
- list
- group
- xover

group – A string containing name of the news group.
Return Types

A vector of vectors the content depends of command.

Errors

SQLState | Error Code | Error Text | Description
--- | --- | --- | ---
22023 | NN008 | the command is not recognized |
2E000 | NN002 | Invalid address for News Server at [host] |
08001 | NN003 | Unable to Contact News Server at [host] |
08006 | NN004 | Lost connection with NNTP server |
08006 | NN008 | Misc. error in connection in nntp_auth_get |