I'm one of those people stuck behind AT&T's port 80 block. I've set up Apache to serve on port 8080, and it's worked quite well until now.
I'm currently working on a VXML application that requires audio data to be submitted via POST to my server. The relevant line of code is:
<submit next="http://xx.xx.xx.xxx:8080/~danzap/saveaudio.php" method="post" namelist="audioRecording"/>
In my saveaudio script, I use:
$tmpFile=$HTTP_POST_FILES['audioRecording']['tmp_name'];
if (is_uploaded_file($tmpFile))
{
$wavfile="wav/".date("YmdHis").".wav";
copy($tmpFile, sprintf("%s",$wavfile));
$msg = "audio saved";
...
}
My question is: shouldn't this be enough to submit the data over port 8080?
Apparently not, because I'm getting a badfetch error from my VXML provider. (Badfetch errors sometimes just mean miscommunication between the browser and server, however.)
If this isn't the right way to do it, what am I missing? Is there another way?
Thanks for your help. It's appreciated.
-- Dan