Paste your Bing Webmaster Tools verification code here Paste your Google Webmaster Tools verification code here

HTTPService Request in Flex for Mobile

Took a while to figure out the error being returned by the phone when trying to post data from the phone to a form.

>> Error #2032: Stream Error.

Reading up on this error, it could happen for a number of reasons. The most common of which being along the lines of “This error appears to occur when the url or file is blocked or not found by HTTPService call.

Although for me, if you are correctly connected to the page you want to make a request to, the key was to inspect the response it was receiving from the server. It wasn’t really a flex error, but rather an issue of what the PHP hosted form was returning. When submitting a post form normally, it doesn’t matter what the response text is. Although, if it’s being called by a mobile device, it should be returning an XML or json response based on the status of the request being made.

Last updated by on .

5 Comments so far »

  1. Amer Dababneh said

    am December 20 2011 @ 7:30 am

    I had the same error. the app was working fine on the desktop but when i tried to debug it in the mobile it was returning the #2032 error. I added some headers to my HTTPService for Content-Length and contentType but after I removed it the app worked fine.

  2. Tai game said

    am October 15 2015 @ 6:06 pm

    You really make it seem so easy with your presentation but I find this topic to be really something which I think I would never understand. It seems too complicated and extremely broad for me. I’m looking forward for your next post, Ill try to get the hang of it!

  3. tai game said

    am November 29 2015 @ 2:38 pm

    Hello, you used to write fantastic, but the last several posts have been kinda boring I miss your great writings. Past few posts are just a bit out of track! come on!.

  4. bigkool said

    am January 29 2016 @ 7:48 pm

    Thanks for the good critique. Me & my friend were just preparing to do some research about this. We got a book from our area library but I think Ive learned better from this post. Im very glad to see such wonderful information being shared freely out there..

  5. Blog tai bigkool said

    am August 25 2016 @ 9:36 pm

    Thanks , I have recently been searching for information approximately this subject for a while and yours
    is the greatest I’ve found out till now. However, what concerning the conclusion? Are you positive about the source?

Comment RSS

Leave a comment

Name: (Required)

eMail: (Required)