|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Binary data in $_POST, not in $_FILES, why?
Hi,
I'm working on an app with a external provider (voicexml), which at the end of the day is posting an html form with normal and file data. I've got 3 test cases, one is an html form with fields and a file, the other test case is another voicexml provider, and the third is my provider, which is where my problem resides. All three have [Content-Type] =multipart/form-data; in the header. The html form and provider X shows the request data correctly, some in _request and one in _files, but my provider ends up with an empty _files array, and i finally dumped the _request array, and it was in there as an item with a bunch of binary data. What would cause php to not put it in _files? The obvious is the multipart/form-data but i've confirmed that. Anything else i can look into? thanks, -jim |
|
#2
|
|||
|
|||
|
Binary data in $_POST, not in $_FILES, why?
I can't because it's a third party provider with a voicexml browser. The
best I have is this log from apache mod_security: PST /temp/save2.php HTTP/1.1 Accept: */* Host: recording.repsstudio.com User-Agent: HVP/4.2 Content-Length: 37486 Content-Type: multipart/form-data; 37486 Content-Disposition: form-data; name="dnis" 1a Content-Disposition: form-data; name="resp" Content-Type: audio/x-wav Content-Length: 37050 RIFF±¿¿WAVEfmt ^R^@^@^@^G^@^A^@@^_^@^@@^_^@^@^A^@^H^@^@^@fact^D^@ ^@^@^?¿¿data^?¿¿{{½ ½½¾|{yxyz{¹º¾¾¶½y{xz{xzzzutvx{{x|z|¿¿¼ºº»º»»»»¼»»¸ ¼ ½»º»¼½¾~}||||¿}}¿~º·»¼*^^¦'#»(^V+^^^^Ztnosx{}¼º»½º º¹»}¾½¾¼¼}º·´³¹¸»$ ^S«^^B¯¨,^^T®^^^N^^§CH*^^P #^^^K3(-B¨W¡p]§´«¨¯¯\~¾|¥´©¼¦´]*²½« ®µwWW®T*·¡¬¤¦h[\QZº{¼¾~[¢I°^]¡U^[· §»¾µ¤¥¾®¤j$ Content-Disposition: form-data; name="usercode" 3a Content-Disposition: form-data; name="userexerciseid" 2a vxml version |
![]() |
| Viewing: Web Development Archives > Mailing Lists > PHP > Binary data in $_POST, not in $_FILES, why? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|