Extending the above note.
When the socket connection is stablished, it works exactly as if you had openned a telnet connection to the news server. If you don't know what kind of headers you have to send to the news server, then I'll suggest that you better give it a try and play with a telnet connection like this:
telenet news.servername.com 119
telnet news.euroconnect.dk 119
Connected to news.euroconnect.net (184.108.40.206).
Escape character is '^]'.
200 news.euroconnect.net (Typhoon v1.2.1)
then you'll receive confirmation from the server that you are connected. Now type "help" and enter, and you'll see what commands are supported.
100 Legal Commands
authinfo type value
list [active wildmat|active.times|counts wildmat]
list [overview.fmt|newsgroups wildmat]
newgroups yyyymmdd hhmmss [GMT]
newnews newsgroups yyyymmdd hhmmss [GMT]
xhdr field [range]
xpat field range pattern
If you want to post a message, you can start by entring the "post" command.
340 Send Article to be Posted
From here you can start to enter the header information.
The most important headers are:
after the ":" a "white space" must follow.
If you are posting the multipart message then remember
This one is also one of the important headers when you are posting a multipart message. The boundary must follow the content type in the same line.
Content-Type: multipart/mixed; boundary="------------4A11A9ABCFCA70DD4E0C3605"
Take a look at the article below to find out more about headers and packing of the message.