Thank you a lot Steve, that's great!
It still is not working, but a least now I know that the error is not in the 
code anymore...
I think the error is the domain name trying to access the Perl script.
So I'll transfer it to the correct server and then try again. Thanks a lot!

--- In [email protected], "valdhor" <[EMAIL PROTECTED]> wrote:
>
> These two lines:
> 
> var array:Array = new Array(new URLRequestHeader("Content-Type",
> "text/html"));
> request.contentType = array.toString();
> 
> send a very strange request to the server:
> 
> Second%5FPhone%5FNumber=0000000000000&Account=000000&Password=password
> 
> Removing the two lines send a proper POST request.
> 
> There is nothing wrong with your Flex code. The "Internal Server
> Error" response is coming from the Perl script due to the strange request.
> 
> BTW. I figured this out using Charles (http://www.charlesproxy.com).
> 
> 
> --- In [email protected], "assaia" <assaia@> wrote:
> >
> > Hello and thank you a lot for your time.
> > The function runs when a button is clicked.
> > When the new webpage loads I get a "Internal Server Error" and
> > "The server encountered an internal error or misconfiguration and
> was unable to complete 
> > your request."
> > I've tried a lot of different configurations but none seems to work
> till now...
> > 
> > private function onClick():void{
> > var url:String = "https://someplace/cgi/web/sth.pl";;
> > var request:URLRequest = new URLRequest(url);
> > var variables:URLVariables = new URLVariables();
> > variables.Account = "000000";
> > variables.Password = "password";
> > variables.Second_Phone_Number = "0000000000000";
> > request.data = variables;
> > request.method = URLRequestMethod.POST;
> > var array:Array = new Array(new URLRequestHeader("Content-Type",
> "text/html"));
> > request.contentType = array.toString();
> > navigateToURL(request, "_self");
> > }
> > 
> > the previous code is a tranformation of a fla file where there was a
> layer with this code:
> > 
> > Account = "000000";
> > Password = "password";
> > Second_Phone_Number = "0000000000000";
> > stop();
> > 
> > and this code
> > 
> > on (release) {
> > // send variables in form movieclip (the textfields)
> > // to email PHP page which will send the mail
> > form.loadVariables();
> > 
> > getURL("https://someplace/cgi/web/sth.pl";, "_self", "POST");
> > gotoAndStop(2);
> > }
> > 
> > Any help would be highly appreciated...
> >
>



Reply via email to