<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://developer.myspace.com/Community/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>MDP JavaScript Container : makeRequest</title><link>http://developer.myspace.com/Community/blogs/mdpjavascriptcontainer/archive/tags/makeRequest/default.aspx</link><description>Tags: makeRequest</description><dc:language>en</dc:language><generator>CommunityServer 2007.1 (Build: 20910.1126)</generator><item><title>Encoding URLs in makeRequest</title><link>http://developer.myspace.com/Community/blogs/mdpjavascriptcontainer/archive/2008/04/18/encoding-urls-in-makerequest.aspx</link><pubDate>Fri, 18 Apr 2008 22:21:00 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:8095</guid><dc:creator>Chad Russell</dc:creator><slash:comments>7</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://developer.myspace.com/Community/blogs/mdpjavascriptcontainer/rsscomments.aspx?PostID=8095</wfw:commentRss><comments>http://developer.myspace.com/Community/blogs/mdpjavascriptcontainer/archive/2008/04/18/encoding-urls-in-makerequest.aspx#comments</comments><description>&lt;p&gt;Hello everybody, this is a request to everyone out there using the makeRequest function.&lt;/p&gt;&lt;p&gt;Inside the container we are encoding all URLs and post parameters, so please don&amp;#39;t encode them yourselves.&amp;nbsp; This will result in a double encode which will get mangled by the proxy.&lt;/p&gt;&lt;p&gt;If you have noticed an issue with your makeRequest function, this may be the cause.&lt;/p&gt;&lt;p&gt;Good:&lt;/p&gt;&lt;p&gt;gadgets.io.makeRequest(&amp;quot;http://myurl.com?p=yay&amp;quot;);&lt;/p&gt;&lt;p&gt;Bad (for two reasons!):&lt;/p&gt;&lt;p&gt;opensocial.makeRequest(encodeUriComponent(&amp;quot;http://myurl.com?p=yay&amp;quot;));&lt;/p&gt;&lt;p&gt;The second one is bad because it: a) encodes the URL and b) uses the deprecated opensocial.makeRequest call, which is specific to OpenSocial 0.6, please update your code to be 0.7 friendly!&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Chad&amp;nbsp;&lt;/p&gt;&lt;img src="http://developer.myspace.com/Community/aggbug.aspx?PostID=8095" width="1" height="1"&gt;</description><category domain="http://developer.myspace.com/Community/blogs/mdpjavascriptcontainer/archive/tags/container/default.aspx">container</category><category domain="http://developer.myspace.com/Community/blogs/mdpjavascriptcontainer/archive/tags/makeRequest/default.aspx">makeRequest</category></item></channel></rss>