[PHP] correctly reading binary data from http post

2006-09-15 Thread Marek 'MMx' Ludha
Hi. I need to send large binary data over http post (so that urlencoding or base64 encoding is not an option). I use request like this: http://people.ksp.sk/~mmx/request (there is a zero byte between A and B). There are 3 bytes of data, but when I do ?php echo strlen($HTTP_POST_VARS['DATA']); ?

Re: [PHP] correctly reading binary data from http post

2006-09-15 Thread Arpad Ray
Marek 'MMx' Ludha wrote: I need to send large binary data over http post (so that urlencoding or base64 encoding is not an option). I use request like this: http://people.ksp.sk/~mmx/request (there is a zero byte between A and B). There are 3 bytes of data, but when I do ?php echo

Re: [PHP] correctly reading binary data from http post

2006-09-15 Thread Marek 'MMx' Ludha
As I read through my first email again I see I didn't write clearly what I intended, sorry for this. I already have an application that sends binary data with requests like the one mentioned before. Now I need to parse those requests using PHP. Since the content-type is multipart/form-data,