AFAIK 4.0.6 is weird in the process of HTTP_RAW_POST_DATA generation.
I used this var successfully on 4.0.0, when tried to upgrade to 4.0.6 there was a 
problem. After an investigation I found that if
the submited POST has known by Apache Content header then the var is empty. I think it 
is fixed in 4.1.0 at least in a CVS 4.1.0-pre
version. Try with 4.1.x

Best regards,
Andrey Hristov

----- Original Message -----
From: "Nicolas BOUTET" <[EMAIL PROTECTED]>
To: "Andrey Hristov" <[EMAIL PROTECTED]>
Sent: Wednesday, February 20, 2002 3:57 PM
Subject: RE: [PHP-DEV] Get an application/octet-stream from a java applet


> I'm using php4.06. Thanks.
> I ask it on php-general.
>
> > -----Message d'origine-----
> > De : Andrey Hristov [mailto:[EMAIL PROTECTED]]
> > Envoye : mercredi 20 fevrier 2002 14:33
> > A : Nicolas Boutet; [EMAIL PROTECTED]
> > Objet : Re: [PHP-DEV] Get an application/octet-stream from a java applet
> >
> >
> > Which version of PHP?
> >
> > Ask this on php-general. php-dev is for coders of core functionality.
> >
> > Best regards,
> > Andrey Hristov
> >
> >
> > ----- Original Message -----
> > From: "Nicolas Boutet" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, February 20, 2002 3:24 PM
> > Subject: [PHP-DEV] Get an application/octet-stream from a java applet
> >
> >
> > > Hi all,
> > > I'm trying to make a script to get "application/octet-stream"
> > datas from a
> > > java applet. The method used by the applet is POST and I tried to use
> > > $HTTP_RAW_POST_DATA like this
> > >
> > > <?....
> > > if (isset($HTTP_RAW_POST_DATA)) {
> > >     $contentlength = strlen($HTTP_RAW_POST_DATA);
> > >     $buffer = $HTTP_RAW_POST_DATA;
> > > }
> > > ...?>
> > >
> > > but $HTTP_RAW_POST_DATA is not set and $buffer stills empty.
> > The size of the
> > > data sent by the applet is 860bytes and the applet works fine
> > if I use a C++
> > > CGI instead of PHP.
> > > Does someone have an idea ?
> > > Thanks a lot ;-)
> > >
> > >
> > >
> > > --
> > > PHP Development Mailing List <http://www.php.net/>
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> > >
> >
> >
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to