Re: Get an application/octet-stream from a java applet
| From: | Andrey Hristov | Date: | Wed, 20 Feb 2002 13:33:21 +0000 |
| Subject: | Re: Get an application/octet-stream from a java applet | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-80200@lists.php.net to get a copy of this message | ||
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" <nicolasboutet@free.fr>
To: <php-dev@lists.php.net>
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
>
>