commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rakesh Shukla" <...@hotmail.com>
Subject [Net] NNTPClient: How to use retrieveArticle and retrieveArticleBody methods?
Date Tue, 07 Feb 2006 02:08:58 GMT
Hi,

I am able to post an article using following (example) code.

Writer writer = client.postArticle();
if (writer != null) {
SimpleNNTPHeader header=new SimpleNNTPHeader
("foobar@foo.com","Just testing");
	Header.addNewsgroup("alt.test");
	writer.write(header.toString());
	writer.write("This is just a test");
	writer.close();
	client.completePendingCommand();
}

When I use any of the retrieveArticle and retrieveArticleBody methods the 
system just hangs. Please let me know how to use these methods properly.



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message