1 Reply Latest reply on Feb 3, 2009 5:22 PM by -Hob

    httpservice result strange

    phil1943 Level 1
      When my HTTPService result comes back the 'event.result' variable always has an '\r\n\r\n' sequence at the beginning.
      How do I get rid of this ?
      I am simply feeding the httpService with an echo from a php script eg. echo "messageHere";

      Thanks for any advice.
        • 1. Re: httpservice result strange
          -Hob Level 1
          \r\n means, "carriage return followed by a new line". You've probably got some extra line breaks in your PHP script. You can get rid of them in flex using StringUtil.trim(event.result), but if you have whitespace characters you care about at the beginning or end of your event.result, you will lose them.