PDA

View Full Version : how to troubleshoot flash-cgi


miiiriam
01-17-2005, 03:13 PM
Hi,
I have a cgi script that gets called on sending an email from within Flash.
I tried out absolute paths, relative paths, nothing seems to work.I set the permissions for that cgi file to execute for all users...Does anyone have an idea what might be the problem?
Am I concluding correctly that there must be something wrong with the path since it doesn't create an error log from my server? Can someone point out a systematic way to narrow down the problem?

this is the path that I use within the swf file:
loadVariablesNum ("http://www.edithschneider.com/cgi-bin/ezformml_miri.cgi", 0, "POST");

thanks in advance, Miriam

miiiriam
01-19-2005, 09:34 AM
anyone please?
I would like to troubleshoot a problem of calling a cgi from within Flash. There's no error log created. Which made me wonder whether there's anything wrong with the path. I checked the path to perl, that seems to be allright. I put an absolute path on the flash button that calls the cgi on my server.(the path has been confirmed by my host as correct) I uploaded the file in ASCII mode, I changed the permissions to execute for all users. I am still tapping in the dark.

CyanBlue
01-19-2005, 03:27 PM
Howdy... :)

I don't know what's really going on, but this is what I can tell you...

If I open up the web browser and type the address, http://www.edithschneider.com/cgi-bin/ezformml_miri.cgi, right there, I get 500 Internal Server Error error... If that's the case, Flash won't be able to access the CGI script as well... Can you verify that the script works??? (I know you said that you have verified that with your host, but it doesn't work...)

miiiriam
01-19-2005, 06:22 PM
so do you mean if you can't access it this way it is the wrong path to that script? Or do you mean there's something wrong within the script, like the path to perl or something?

CyanBlue
01-19-2005, 06:25 PM
I say... If you can't access it from the web browser, Flash won't be able to access it either because Flash uses http protocol to make a call... I wouldn't know why it is not accessible though... ;)

mindhack
03-12-2005, 02:59 PM
CyanBlue, I do not know if you got this fixed but you may want to check and make sure the permissions on the cgi and the folder are set to 755. You can check this through most FTP programs.

pad
04-21-2005, 12:53 PM
mindhack,

Can you tell me how to check the permissions of the cgi and folder are 755? I'm using Dreamweaver MX and couldn't find it.

boyzdynasty
05-17-2005, 02:29 AM
I know I'm late...but...

When I started scripting PERL/CGI for work (1 month ago)...it's

you need [print "Content-type: text/plain\n\n";] printed before doing any html embedding.