Problem with HTTP_Post and multipart/form-data
| From: | Radek Maciaszek | Date: | Thu, 18 Jul 2002 00:07:26 +0000 |
| Subject: | Problem with HTTP_Post and multipart/form-data | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-7763@lists.php.net to get a copy of this message | ||
Hi
When I send data to my PHP script with class HTTP_Post by enctype
"application/x-www-form-urlencoded" it works fine but when
I try to send the same by "multipart/form-data"
the $_POST is empty and if I try the same send to Java
servlet i get error:
500 Servlet Exception
java.io.IOException: Corrupt form data: no leading boundary:
----5eb60d47e65b89975b7f1d5f4d1cdcb2----
!= ------5eb60d47e65b89975b7f1d5f4d1cdcb2----
What can I do to prevent this (bug?) ?
Best regards,
Radoslaw Maciaszek