X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.8 required=5.0	tests=AWL,BAYES_00,KHOP_THREADED,SPF_HELO_PASS,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Andrew DeFaria <Andrew@DeFaria.com>
Subject: Re: telnet to newsgroup
Date: Thu, 05 Apr 2012 10:46:23 -0700
Lines: 51
Message-ID: <jlklph$5tk$1@dough.gmane.org>
References: <jlkju4$n27$1@dough.gmane.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko/20120327 Thunderbird/11.0.1
In-Reply-To: <jlkju4$n27$1@dough.gmane.org>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 4/5/2012 10:14 AM, John wrote:
> Hello. I read on another list about how one (presumably) Linux user connects
> to newsgroups using one of two different methods on the command line. If I
> am not mistaken, both use telnet.  The two different commands he used to
> illustrate them are these:
>
> You can use STARTTLS on the nntp port (119):
>
>    $ echo -e 'HELP\nQUIT\n' | nc news.gmane.org nntp | grep TLS
>      STARTTLS
>    $
>
> or you can connect to the nntps port (563):
>
>    $ gnutls-cli --insecure -p nntps news.gmane.org | grep 200
>    200 news.gmane.org InterNetNews NNRP server INN 2.5.1 ready (posting ok)
>    QUIT
>    $
>
>
> The second of these is using a program called "gnutls-cli", which is that is
> available to cygwin. I have cygwin on my system and I tied using the command
> at the Windows command prompt exactly like this:
>
> gnutls-cli --insecure -p nntps news.gmane.org | grep 200
>
> It did not work but I got an error back:
>
>   "Cannot resolve news.gmane.org:nntps: servname not supported
> for the ai_socktype."
>
> What am I missing in order to make this work?  Thanks.

Cygwin creates a symlink for /etc/services -> 
/cygdrive/c/WINDOWS/system32/drivers/etc/services. I don't find an entry 
for nttps in /etc/services, really 
WINDOWS\system32\drivers\etc\services. I do find it on Linux:

    Linux:grep nttps /etc/services
    nntps           563/tcp                         # NNTP over SSL

    Cygwin:grep nttps /etc/services
    Cygwin:

You could try adding the line to /etc/services or somehow specifying 
port 563 to gnutls-cli.
-- 
Andrew DeFaria <http://defaria.com>
Cranial-rectal inversion disorder - a condition where one's head is 
where one's butt should be and vice-versa, causing an otherwise sensible 
person to make an ass of himself.


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

