Re: posting news via php - 535 error
| From: | Andy | Date: | Fri, 09 Aug 2002 13:47:29 +0000 |
| Subject: | Re: posting news via php - 535 error | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-111818@lists.php.net to get a copy of this message | ||
> Try to put a "." when you finished at the new line. And use utf7
> encoding.
I did already put this . after the message. This is described in the spec,
but I might have put it into the wrong spot?!
What do u suggest to put it? What is utf7 encoding? Can you make an example?
Andy
--
-----------------------------
http://www.ozforum.info
"Latex Master" <freeman@submission.org.ru> schrieb im Newsbeitrag
news:20166562694.20020809111145@submission.org.ru...
> Hello andy,
> Try to put a "." when you finished at the new line. And use utf7
> encoding.
>
> Friday, August 9, 2002, 10:11:44 AM, you wrote:
>
> a> Hi there,
>
> a> I am trying to write a script which is posting news to a newsserver.
> a> Unfortunatelly I do get a 535 error back which is not reported in:
> a> http://www.faqs.org/rfcs/rfc977.html Section 3.10.2
>
> a> Maybe someone of you guys has a clue of an idea what is going wrong.
> a> connecting works, so I did not include the connect code. The code for
> a> posting is underneath.
>
> a> Thanx for any help on that.
>
> a> Andy
>
>
> a> $cfgServer = "news.php.net";
> a> $cfgNewsGroup = "php.general";
> a> $subject='Test';
> a> $header='
> a> Newsgroups: '.$cfgNewsGroup.'
> a> Path: '.$cfgServer.'
> a> Relay-Version: version B 2.10 2/13/83; site cbosgd.UUCP
> a> Posting-Version: version B 2.10 2/13/83; site eagle.UUCP
> a> From: jerry@eagle.uucp (Jerry Schwarz)
> a> Subject: '.$subject.'
> a> Message-ID: <642@eagle.UUCP>
> a> Date: Friday, 10-Aug-2002 16:14:55 EST
> a> Followup-To: '.$cfgNewsGroup.'
> a> Expires: Saturday, 1-Jan-2003 00:00:00 EST
> a> Date-Received: Friday, 10-Aug-2002 16:59:30 EST
> a> Organization: Bell Labs, Murray Hill
> a> ';
>
> a> $body='\n
> a> This is a test.
> a> ';
>
> a> $message=$header.$body;
>
> a> $put = fputs($usenet_handle, "POST $message\n");
>
> a> echo $put;
>
>
>
>
>
>
> --
> Best regards,
> Latex
> mailto:freeman@submission.org.ru
>