<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: ASP.NET Proxy Page &#8211; Used for Cross Domain Requests from AJAX and JavaScript</title> <atom:link href="http://www.sharepointjohn.com/aspnet-proxy-page-cross-domain-requests-from-ajax-and-javascript/feed/" rel="self" type="application/rss+xml" /><link>http://www.sharepointjohn.com/aspnet-proxy-page-cross-domain-requests-from-ajax-and-javascript/</link> <description></description> <lastBuildDate>Fri, 03 Feb 2012 10:33:36 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>By: Bob</title><link>http://www.sharepointjohn.com/aspnet-proxy-page-cross-domain-requests-from-ajax-and-javascript/#comment-3241</link> <dc:creator>Bob</dc:creator> <pubDate>Wed, 25 Jan 2012 22:29:47 +0000</pubDate> <guid
isPermaLink="false">http://www.sharepointjohn.com/?p=356#comment-3241</guid> <description>Did you publish your modified code anywhere? What you added sounds exactly like what I thought was missing from this great post.</description> <content:encoded><![CDATA[<p>Did you publish your modified code anywhere? What you added sounds exactly like what I thought was missing from this great post.</p> ]]></content:encoded> </item> <item><title>By: Peter Neil</title><link>http://www.sharepointjohn.com/aspnet-proxy-page-cross-domain-requests-from-ajax-and-javascript/#comment-3233</link> <dc:creator>Peter Neil</dc:creator> <pubDate>Thu, 12 Jan 2012 13:49:10 +0000</pubDate> <guid
isPermaLink="false">http://www.sharepointjohn.com/?p=356#comment-3233</guid> <description>Your REST based service is very RESTful if it isn&#039;t using GET for READING DATA.I can see that using a POST might be desirable to post to another server and make sure the Proxy follows any redirects for you.</description> <content:encoded><![CDATA[<p>Your REST based service is very RESTful if it isn&#8217;t using GET for READING DATA.</p><p>I can see that using a POST might be desirable to post to another server and make sure the Proxy follows any redirects for you.</p> ]]></content:encoded> </item> <item><title>By: Karl</title><link>http://www.sharepointjohn.com/aspnet-proxy-page-cross-domain-requests-from-ajax-and-javascript/#comment-3228</link> <dc:creator>Karl</dc:creator> <pubDate>Tue, 03 Jan 2012 20:53:51 +0000</pubDate> <guid
isPermaLink="false">http://www.sharepointjohn.com/?p=356#comment-3228</guid> <description>In case you are using a REST based service and don&#039;t want to use the ugly GET? :-)</description> <content:encoded><![CDATA[<p>In case you are using a REST based service and don&#8217;t want to use the ugly GET? <img
src='http://d1tx0s6xuf906k.cloudfront.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /></p> ]]></content:encoded> </item> <item><title>By: TimTim</title><link>http://www.sharepointjohn.com/aspnet-proxy-page-cross-domain-requests-from-ajax-and-javascript/#comment-2810</link> <dc:creator>TimTim</dc:creator> <pubDate>Tue, 20 Dec 2011 19:26:17 +0000</pubDate> <guid
isPermaLink="false">http://www.sharepointjohn.com/?p=356#comment-2810</guid> <description>If anyone has the same problem as me I eventually found my answer here: http://stackoverflow.com/questions/1271701/reading-image-from-web-server-in-c-sharp-proxy</description> <content:encoded><![CDATA[<p>If anyone has the same problem as me I eventually found my answer here: <a
href="http://stackoverflow.com/questions/1271701/reading-image-from-web-server-in-c-sharp-proxy" >http://stackoverflow.com/questions/1271701/reading-image-from-web-server-in-c-sharp-proxy</a></p> ]]></content:encoded> </item> <item><title>By: TimTim</title><link>http://www.sharepointjohn.com/aspnet-proxy-page-cross-domain-requests-from-ajax-and-javascript/#comment-2301</link> <dc:creator>TimTim</dc:creator> <pubDate>Tue, 13 Dec 2011 01:50:44 +0000</pubDate> <guid
isPermaLink="false">http://www.sharepointjohn.com/?p=356#comment-2301</guid> <description>Thanks this proxy works great, except for images. Any image that is requested will not show in a browser due to &quot;The image ... cannot be displayed because it contains errors.&quot; If I request an image and then request it via the proxy the first request returns fine and the 2nd returns this error message. Any suggestions? In case you are wondering I do have a valid case for requesting images - I&#039;m performance testing mapping services via ajax</description> <content:encoded><![CDATA[<p>Thanks this proxy works great, except for images. Any image that is requested will not show in a browser due to &#8220;The image &#8230; cannot be displayed because it contains errors.&#8221; If I request an image and then request it via the proxy the first request returns fine and the 2nd returns this error message. Any suggestions? In case you are wondering I do have a valid case for requesting images &#8211; I&#8217;m performance testing mapping services via ajax</p> ]]></content:encoded> </item> <item><title>By: [SharePoint 2010] Cross-Domain Proxy Page for Client-Side Scripts &#171; SharePoint John &#8211; John Chapman&#039;s Blog About SharePoint, ASP.NET, C#, jQuery, SQL</title><link>http://www.sharepointjohn.com/aspnet-proxy-page-cross-domain-requests-from-ajax-and-javascript/#comment-226</link> <dc:creator>[SharePoint 2010] Cross-Domain Proxy Page for Client-Side Scripts &#171; SharePoint John &#8211; John Chapman&#039;s Blog About SharePoint, ASP.NET, C#, jQuery, SQL</dc:creator> <pubDate>Tue, 13 Sep 2011 23:23:22 +0000</pubDate> <guid
isPermaLink="false">http://www.sharepointjohn.com/?p=356#comment-226</guid> <description>[...] 2010] Cross-Domain Proxy Page for Client-Side ScriptsFollowing my blog post about ASP.NET Proxy Pages for Client-Side Scripts I have created a SharePoint 2010 solution to add a proxy page to a SharePoint 2010 farm.CodePlex [...]</description> <content:encoded><![CDATA[<p>[...] 2010] Cross-Domain Proxy Page for Client-Side ScriptsFollowing my blog post about ASP.NET Proxy Pages for Client-Side Scripts I have created a SharePoint 2010 solution to add a proxy page to a SharePoint 2010 farm.CodePlex [...]</p> ]]></content:encoded> </item> <item><title>By: Tom C</title><link>http://www.sharepointjohn.com/aspnet-proxy-page-cross-domain-requests-from-ajax-and-javascript/#comment-117</link> <dc:creator>Tom C</dc:creator> <pubDate>Sat, 03 Sep 2011 23:39:42 +0000</pubDate> <guid
isPermaLink="false">http://www.sharepointjohn.com/?p=356#comment-117</guid> <description>This is great thanks for sharing. With minor changes (accessing the Request object through context) I put this in an asynchronous HTTP handler for added efficiency and to support concurrency. I also updated a few things to support POST requests, as I do think this is worthwhile</description> <content:encoded><![CDATA[<p>This is great thanks for sharing. With minor changes (accessing the Request object through context) I put this in an asynchronous HTTP handler for added efficiency and to support concurrency. I also updated a few things to support POST requests, as I do think this is worthwhile</p> ]]></content:encoded> </item> <item><title>By: Fabio</title><link>http://www.sharepointjohn.com/aspnet-proxy-page-cross-domain-requests-from-ajax-and-javascript/#comment-116</link> <dc:creator>Fabio</dc:creator> <pubDate>Fri, 02 Sep 2011 21:39:50 +0000</pubDate> <guid
isPermaLink="false">http://www.sharepointjohn.com/?p=356#comment-116</guid> <description>Hi!
Thanks for the solution.
I&#039;m trying to use it for all requests (JS, Images, XML).
Unfortunately it&#039;s not working...For example, I&#039;m trying to get an image using the proxy, so I use the following URLpersacore.aspx?u=imagens/icones/tema_1/m/energia_m.pngbut the browser does not recognize it as an image. The Content Type is correct. Any ideas?</description> <content:encoded><![CDATA[<p>Hi!<br
/> Thanks for the solution.<br
/> I&#8217;m trying to use it for all requests (JS, Images, XML).<br
/> Unfortunately it&#8217;s not working&#8230;For example, I&#8217;m trying to get an image using the proxy, so I use the following URL</p><p>persacore.aspx?u=imagens/icones/tema_1/m/energia_m.png</p><p>but the browser does not recognize it as an image. The Content Type is correct. Any ideas?</p> ]]></content:encoded> </item> <item><title>By: Matthew Henry</title><link>http://www.sharepointjohn.com/aspnet-proxy-page-cross-domain-requests-from-ajax-and-javascript/#comment-115</link> <dc:creator>Matthew Henry</dc:creator> <pubDate>Thu, 19 May 2011 18:49:27 +0000</pubDate> <guid
isPermaLink="false">http://www.sharepointjohn.com/?p=356#comment-115</guid> <description>You also need to copy the user-agent
request.UserAgent = Request.UserAgent;</description> <content:encoded><![CDATA[<p>You also need to copy the user-agent<br
/> request.UserAgent = Request.UserAgent;</p> ]]></content:encoded> </item> <item><title>By: Dan</title><link>http://www.sharepointjohn.com/aspnet-proxy-page-cross-domain-requests-from-ajax-and-javascript/#comment-114</link> <dc:creator>Dan</dc:creator> <pubDate>Wed, 04 May 2011 10:57:31 +0000</pubDate> <guid
isPermaLink="false">http://www.sharepointjohn.com/?p=356#comment-114</guid> <description>John,I also have the requiremnt to proxy the SRC attribute of an image. The scenario is that a page reads the contents of an RSS feed (not my own) which resides on a different domain. The description tag of the RSS feed contains HTML mark-up included within it including an image.The image doesn&#039;t currently display which i believe is due to the cross domain requests restriction. I would like to deliver the contents of the image via a proxy page in a similar to which you have described. I have based my attempt on your example provided but have been unable to get it to work.</description> <content:encoded><![CDATA[<p>John,</p><p>I also have the requiremnt to proxy the SRC attribute of an image. The scenario is that a page reads the contents of an RSS feed (not my own) which resides on a different domain. The description tag of the RSS feed contains HTML mark-up included within it including an image.</p><p>The image doesn&#8217;t currently display which i believe is due to the cross domain requests restriction. I would like to deliver the contents of the image via a proxy page in a similar to which you have described. I have based my attempt on your example provided but have been unable to get it to work.</p> ]]></content:encoded> </item> <item><title>By: John Chapman</title><link>http://www.sharepointjohn.com/aspnet-proxy-page-cross-domain-requests-from-ajax-and-javascript/#comment-113</link> <dc:creator>John Chapman</dc:creator> <pubDate>Mon, 07 Mar 2011 21:56:22 +0000</pubDate> <guid
isPermaLink="false">http://www.sharepointjohn.com/?p=356#comment-113</guid> <description>Can you explain the scenario a bit more?  I&#039;m not sure I see a correlation between this proxy solution to populating the src for an image.</description> <content:encoded><![CDATA[<p>Can you explain the scenario a bit more?  I&#8217;m not sure I see a correlation between this proxy solution to populating the src for an image.</p> ]]></content:encoded> </item> <item><title>By: Nico Witteman</title><link>http://www.sharepointjohn.com/aspnet-proxy-page-cross-domain-requests-from-ajax-and-javascript/#comment-112</link> <dc:creator>Nico Witteman</dc:creator> <pubDate>Sun, 06 Mar 2011 14:21:09 +0000</pubDate> <guid
isPermaLink="false">http://www.sharepointjohn.com/?p=356#comment-112</guid> <description>Lovely and simple.I would very much to use this to set the src-attribute for an img, but it does not seem to work. Any ideas?</description> <content:encoded><![CDATA[<p>Lovely and simple.</p><p>I would very much to use this to set the src-attribute for an img, but it does not seem to work. Any ideas?</p> ]]></content:encoded> </item> <item><title>By: Romona</title><link>http://www.sharepointjohn.com/aspnet-proxy-page-cross-domain-requests-from-ajax-and-javascript/#comment-111</link> <dc:creator>Romona</dc:creator> <pubDate>Wed, 27 Oct 2010 04:58:24 +0000</pubDate> <guid
isPermaLink="false">http://www.sharepointjohn.com/?p=356#comment-111</guid> <description>It is great to see what is possible!</description> <content:encoded><![CDATA[<p>It is great to see what is possible!</p> ]]></content:encoded> </item> <item><title>By: Andy R</title><link>http://www.sharepointjohn.com/aspnet-proxy-page-cross-domain-requests-from-ajax-and-javascript/#comment-110</link> <dc:creator>Andy R</dc:creator> <pubDate>Mon, 06 Sep 2010 13:31:15 +0000</pubDate> <guid
isPermaLink="false">http://www.sharepointjohn.com/?p=356#comment-110</guid> <description>After seeing this, http://www.experts-exchange.com/Q_26452332.htm, I can think of several situations where you might want to &quot;POST&quot; data to a remote web-service, and stick the results in a local page e.g.
* Exchange rate conversion,
* Stock price lookup,
* delivery rate lookup.
Personally I&#039;d use  Apache to Reverse Proxy the requests to the remote site, by adding the entries below to the httpd.conf, but there are plenty of equivalents for IIS, out there e.g. http://www.codeproject.com/KB/web-security/HTTPReverseProxy.aspx#--- cut &#039;n&#039; paste into you Apache httpd.conf ---
ProxyRequests OffOrder deny,allow
Allow from allProxyPass        /proxy http://www.some.webservice
ProxyPassReverse /proxy http://www.some.webservice
#---- Cut ends ---</description> <content:encoded><![CDATA[<p>After seeing this, <a
href="http://www.experts-exchange.com/Q_26452332.htm" >http://www.experts-exchange.com/Q_26452332.htm</a>, I can think of several situations where you might want to &#8220;POST&#8221; data to a remote web-service, and stick the results in a local page e.g.<br
/> * Exchange rate conversion,<br
/> * Stock price lookup,<br
/> * delivery rate lookup.<br
/> Personally I&#8217;d use  Apache to Reverse Proxy the requests to the remote site, by adding the entries below to the httpd.conf, but there are plenty of equivalents for IIS, out there e.g. <a
href="http://www.codeproject.com/KB/web-security/HTTPReverseProxy.aspx" >http://www.codeproject.com/KB/web-security/HTTPReverseProxy.aspx</a></p><p>#&#8212; cut &#8216;n&#8217; paste into you Apache httpd.conf &#8212;<br
/> ProxyRequests Off</p><p>Order deny,allow<br
/> Allow from all</p><p>ProxyPass        /proxy <a
href="http://www.some.webservice" >http://www.some.webservice</a><br
/> ProxyPassReverse /proxy <a
href="http://www.some.webservice" >http://www.some.webservice</a><br
/> #&#8212;- Cut ends &#8212;</p> ]]></content:encoded> </item> <item><title>By: John Chapman</title><link>http://www.sharepointjohn.com/aspnet-proxy-page-cross-domain-requests-from-ajax-and-javascript/#comment-109</link> <dc:creator>John Chapman</dc:creator> <pubDate>Fri, 03 Sep 2010 14:57:26 +0000</pubDate> <guid
isPermaLink="false">http://www.sharepointjohn.com/?p=356#comment-109</guid> <description>In what scenario would you want to POST to this proxy page?</description> <content:encoded><![CDATA[<p>In what scenario would you want to POST to this proxy page?</p> ]]></content:encoded> </item> <item><title>By: Michael H</title><link>http://www.sharepointjohn.com/aspnet-proxy-page-cross-domain-requests-from-ajax-and-javascript/#comment-108</link> <dc:creator>Michael H</dc:creator> <pubDate>Wed, 01 Sep 2010 18:57:43 +0000</pubDate> <guid
isPermaLink="false">http://www.sharepointjohn.com/?p=356#comment-108</guid> <description>But it doesn&#039;t support POST.</description> <content:encoded><![CDATA[<p>But it doesn&#8217;t support POST.</p> ]]></content:encoded> </item> <item><title>By: Kevon K. Hayes</title><link>http://www.sharepointjohn.com/aspnet-proxy-page-cross-domain-requests-from-ajax-and-javascript/#comment-107</link> <dc:creator>Kevon K. Hayes</dc:creator> <pubDate>Tue, 17 Aug 2010 18:39:05 +0000</pubDate> <guid
isPermaLink="false">http://www.sharepointjohn.com/?p=356#comment-107</guid> <description>Well done.  Good to see what&#039;s possible.</description> <content:encoded><![CDATA[<p>Well done.  Good to see what&#8217;s possible.</p> ]]></content:encoded> </item> <item><title>By: John Chapman</title><link>http://www.sharepointjohn.com/aspnet-proxy-page-cross-domain-requests-from-ajax-and-javascript/#comment-106</link> <dc:creator>John Chapman</dc:creator> <pubDate>Tue, 03 Aug 2010 14:14:36 +0000</pubDate> <guid
isPermaLink="false">http://www.sharepointjohn.com/?p=356#comment-106</guid> <description>That is exactly what I use this for.  I place the page in the LAYOUTS folder on the server to make it available to all the SP sites.  I primarily use it for consuming RSS feeds across domains.</description> <content:encoded><![CDATA[<p>That is exactly what I use this for.  I place the page in the LAYOUTS folder on the server to make it available to all the SP sites.  I primarily use it for consuming RSS feeds across domains.</p> ]]></content:encoded> </item> <item><title>By: Jaosn Kuter</title><link>http://www.sharepointjohn.com/aspnet-proxy-page-cross-domain-requests-from-ajax-and-javascript/#comment-105</link> <dc:creator>Jaosn Kuter</dc:creator> <pubDate>Mon, 02 Aug 2010 21:09:58 +0000</pubDate> <guid
isPermaLink="false">http://www.sharepointjohn.com/?p=356#comment-105</guid> <description>Brilliantly simple solution, thanks!  This will work wonders on our SharePoint intranet.</description> <content:encoded><![CDATA[<p>Brilliantly simple solution, thanks!  This will work wonders on our SharePoint intranet.</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Served from: www.sharepointjohn.com @ 2012-02-06 02:40:14 by W3 Total Cache -->
