PHP
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   Web Development Archives Mailing Lists PHP

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Web Development Archives Sponsor:
  #1  
Old June 16th, 2008, 10:31 AM
Jim Feniello
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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

Reply With Quote
  #2  
Old June 16th, 2008, 12:11 PM
Jim Feniello
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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

Reply With Quote
Reply

Viewing: Web Development Archives Mailing Lists PHP > Binary data in $_POST, not in $_FILES, why?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT