Article View: news.software.nntp
Article #59809Re: simple post syntax problem
From: Erik Hensema
Date: Fri, 02 Aug 2002 11:26
Date: Fri, 02 Aug 2002 11:26
44 lines
2445 bytes
2445 bytes
simon taylor (simon.taylor@fdlearning.com) wrote: > Dear all, > Firstly thank you for reading my post - I can appreciate your very > busy !!! > My question should be quite simple... but I cannot find any help > anywhere.... > > I'm using the winsck.ocx control as the basis of a light weight > posting application written in vb > > I can connect to our IIS/NNTP server no problem eg.... > > "Winsock1.Connect "server.com", 119" > > and i can read postings ok.... > "Winsock1.SendData "ARTICLE 1" & vbCrLf" > > but when I try and post i just get a "Command not recognised" > I know there are no permissions problems... > > heres what I have tried...... > > Winsock1.SendData "POST" Pause here and wait for the server's reply > winsock1.sendData "Newsgroup: test " > Winsock1.SendData "From: me@company.com " > Winsock1.SendData "Subject:NNTP Demo Post " > winsock1.senddata " " This should be an empty line. > Winsock1.SendData "This is an NNTP posting demonstration" > Winsock1.SendData "." & vbCrLf What is vbCrLf? A CR+LF? You'll have to add that to every line. The & operator isn't bitwise AND, but string concatination, I hope? ;-) -- Erik Hensema (erik@hensema.net) ICQ# 8280101 Quoting-HOWTO: http://www.leerquoten.nl
Technical Details
Message-ID:
<slrnakkr3v.1di.spamtrap@dexter.hensema.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news2.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.online.be!newsfeed.wirehub.nl!transit.news.xs4all.nl!131.211.28.48.MISMATCH!news.nl.linux.org!humbolt.nl.linux.org!news.hensema.net!cc78409-a.hnglo1.ov.nl.home.com!not-for-mailReferences:
<6ffb6d34.0208020258.61f087f0@posting.google.com>Show Full Headers
Complete Article Headers
Message-ID: <slrnakkr3v.1di.spamtrap@dexter.hensema.net> Subject: Re: simple post syntax problem Date: Fri, 02 Aug 2002 11:26:55 +0000 From: Erik Hensema <spamtrap@use.reply-to> References: <6ffb6d34.0208020258.61f087f0@posting.google.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news2.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.online.be!newsfeed.wirehub.nl!transit.news.xs4all.nl!131.211.28.48.MISMATCH!news.nl.linux.org!humbolt.nl.linux.org!news.hensema.net!cc78409-a.hnglo1.ov.nl.home.com!not-for-mail Newsgroups: news.software.nntp Organization: Hensema Lines: 43 Reply-To: erik@hensema.net NNTP-Posting-Host: dexter.ipv6.hensema.net X-Trace: dexter.hensema.net 1028287615 11366 3ffe:8280:10:a10::1 (2 Aug 2002 11:26:55 GMT) X-Complaints-To: news@hensema.net NNTP-Posting-Date: Fri, 2 Aug 2002 11:26:55 +0000 (UTC) User-Agent: slrn/0.9.7.4 (Linux)