Hi 

No they are there. It always ends on onRequestComplete(), and on the server 
side I get a request.
On the onRequestComplete I can read the previous posted data onto 
_HTTPService.contentData, on the property _HTTPService.result_data.
It seems that _HTTPService.contentData is not being send to the server but 
keeps its contents on client side.

private function onRequestComplete(e:org.apache.flex.events.Event):void
{
        Alert.show("Success", "Posting Data",Alert.OK);
        MyTxtResult.text = _HTTPService.result_data;
}

private function onRequestFault(e:org.apache.flex.events.Event):void
{
        Alert.show("ERROR","Posting Data",Alert.OK);
}

-----Mensagem original-----
De: Deepak MS [mailto:megharajdee...@gmail.com] 
Enviada: 4 de junho de 2014 12:38
Para: dev@flex.apache.org
Cc: Logibérica - Marco Peixoto
Assunto: Re: HTTPService Example

Are you missing result and fault events?

_HTTPService.addEventListener("result",onResult);
_HTTPService.addEventListener("fault",onFault);



On Wed, Jun 4, 2014 at 4:18 PM, Logibérica - Paulo Esgaio < 
pesg...@logiberica.com> wrote:

> Sorry for the late answer.
>
> I didn't receive any error, but on the server side (using PHP) the 
> $_POST var is empty. The http headers are OK.
>
> Here's the partial code:
>
> private var _HTTPService:HTTPService = new HTTPService(); ...
> _HTTPService.method = "POST"
> _HTTPService.url = _url;
> _HTTPService.contentType = "charset=x-user-defined"; 
> _HTTPService.contentData = my_data_to_send; 
> _HTTPService.addEventListener("complete",onRequestComplete);
> _HTTPService.addEventListener("ioError",onRequestFault);
> _HTTPService.send();
>
> If i'm doing something wrong, please give me some guide lines.
>
> TIA.
>
> -----Mensagem original-----
> De: Alex Harui [mailto:aha...@adobe.com]
> Enviada: 3 de junho de 2014 04:55
> Para: dev@flex.apache.org
> Cc: Logibérica - Marco Peixoto
> Assunto: Re: HTTPService Example
>
> A simple POST test worked for me.  Did you get an error?  What were 
> you trying to post?
>
> -Alex
>
> On 6/2/14 10:18 AM, "pesgaio" <pesg...@logiberica.com> wrote:
>
> >Thak you, but I meant a FlexJS example.
> >
> >
> >
> >
> >--
> >View this message in context:
> >http://apache-flex-development.2333347.n4.nabble.com/FlexJS-HTTPServi
> >ce
> >-Ex
> >ample-tp37930p37933.html
> >Sent from the Apache Flex Development mailing list archive at Nabble.com.
>
>
>
>
>

Reply via email to