[tpop3d-discuss] a silly question

Ivan Matveyev hobot at zebratelecom.ru
Tue, 18 Feb 2003 18:58:50 +0300 (MSK)

On Tue, 18 Feb 2003, Chris Lightfoot wrote:

> > > > I am trying to get auth_other work. I've already made my php shell script
> > > Hmm. That's a new one on me -- I'd welcome an example to
> > I could send it to you, but to get the thing working (I mean the ability
> > of php script to get info from tpop3d) I had to modify
> > auth_other_send_request function (had to change all '\0' to '=' and '\t'
> > for proper work of php).
> How so? Can you not parse a string containing embedded \0
> with PHP? That sounds a bit unlikely.
Maybe I'm dumb, but the '\0' symbol ceased input to stdin.

> > > Um. Firstly, the packet you send should end with two \0s,
> > > so you should either append one in your function, or in
> > > the data that you send.
> > This helped a bit. Now I get "auth_other_new_user_pass: missing key
> > `result' in response". ;-( The response is just as quoted above with an
> > extra '\0' at the end.
> I don't understand that. I can't reproduce it with a
> simple test script here.
Mea culpa. I've forgot to switch off some debug and it flushed some crap
to stdout. Now it works fine.

> Are you sure that your PHP script isn't sending HTTP
> headers?
Of course, no. I used to run it with '-q' switch.

Ivan Matveyev, Zebra Telecom
Tech Dept, +7(095)741-0001