[tpop3d-discuss] a silly question
chris at ex-parrot.com
Tue, 18 Feb 2003 14:45:30 +0000
On Tue, Feb 18, 2003 at 05:35:17PM +0300, Ivan Matveyev wrote:
> On Tue, 18 Feb 2003, Chris Lightfoot wrote:
> > > I am trying to get auth_other work. I've already made my php shell script
> > > get info from tpop3d, but I have no idea what is the problem with getting
> > > the result string from the script.
> > Hmm. That's a new one on me -- I'd welcome an example to
> > put in the distribution when you've got it working.
> 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.
> > 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.
Are you sure that your PHP script isn't sending HTTP
``A letter was sent to yourself from ourselves.''
(unknown UK government official, to correspondent)