1 Reply Latest reply on Nov 1, 2010 5:11 AM by Sudhakar Kakaraparthi

    mx.rpc.http.HTTPService, HttpResponse.sendRediect(url)

    Sudhakar Kakaraparthi

      Hi guys,

       

       

      I am using HTTPService to invoke my server side servlet and i passing some parameters using "data" field. In servlet side based on the parameter it will redirects and some other URL. Servlet code is below...

       

                doPost(request,response){

                     ....

                     ....

                     response.sendRedirect(url);

                }

       

      How can I get the URL in flex side. Here I am using HTTPService at Flex client side. This is the service I have to use at FlexClient or any other.

       

      Could please help me to solve this problem...

        • 1. Re: mx.rpc.http.HTTPService, HttpResponse.sendRediect(url)
          Sudhakar Kakaraparthi Level 1

          Guys,

           

          I was able to get the request headers and response url from AIR application using URLLoader. below is the code...

           

           

                         var url:URLLoader = new URLLoader();
                          url.addEventListener(HTTPStatusEvent.HTTP_RESPONSE_STATUS,test);

                         ul.load(URLRequest(myurl));

           

           

                    private function status(event:HTTPStatusEvent):void{
                          Alert.show("1::"+ObjectUtil.toString(event.responseHeaders));
                          Alert.show("2::"+ObjectUtil.toString(event.responseURL));
                      }

           

           

          But I want same functionality in WebApplication. I am unable to add listener for "HTTPStatusEvent.HTTP_RESPONSE_STATUS".

           

          Please help.....