Bright Hub
 
Matthew Casperson's Hubfolio

URLLoader Error #2032: Stream Error

RSS

This error can be caused by requesting a URL that is over the maximum length supported by Internet Explorer, which is 2083. This can be confusing, because if you copy a URL you are trying to load in Flex with a URLRequest into Internet Explorer, IE will truncate the URL itself, and appear to load properly.

This is especially important for REST API's that can take a long string variable.

The following code will avoid this issue.

var URL_MAX_LENGTH:int = 2083;

var request:URLRequest = new URLRequest(url.substr(0, URL_MAX_LENGTH));


Written by Matthew Casperson (4,880 pts ) in Matthew Casperson Blog
Last Edited on Oct 23 2009, 06:35 PM
 

Bright Hub - Science & Technology Articles, Buyer's Guides, How-To Tips and Software Reviews
About Bright Hub | Contact Us | Advertise with Us | Become a Writer | RSS | Site Map | Terms of Use | Privacy Policy | Copyright Policy
©2009 Bright Hub Inc. All rights reserved. Page copy protected against web site content infringement by Copyscape