<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Setting headers with request</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : Community Forum : Setting headers with request</description>
  <pubDate>Fri, 10 Apr 2026 19:14:19 -700</pubDate>
  <lastBuildDate>Thu, 15 Nov 2012 20:30:20 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=3764</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Setting headers with request : This works. Thank you. Keep em...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3764&amp;PID=15217#15217</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1569" rel="nofollow">sujesharukil</a><br /><strong>Subject:</strong> 3764<br /><strong>Posted:</strong> 15-Nov-2012 at 8:30pm<br /><br />This works. Thank you. Keep em updates coming!]]>
   </description>
   <pubDate>Thu, 15 Nov 2012 20:30:20 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3764&amp;PID=15217#15217</guid>
  </item> 
  <item>
   <title>Setting headers with request : As of Breeze 0.70.1 we  now support...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3764&amp;PID=15190#15190</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1524" rel="nofollow">jtraband</a><br /><strong>Subject:</strong> 3764<br /><strong>Posted:</strong> 13-Nov-2012 at 10:34am<br /><br />As of Breeze 0.70.1 we now support for the ability to completely customize or replace any ajax communication between the breeze client and the web service on the server. <br><br>The Breeze documentation on our Ajax support is still in progress, but hopefully the following will get you started. <br><br>To control the headers on every ajax request that breeze makes you can execute the following code when your app first starts up.<br><br>&nbsp;&nbsp; &nbsp; var ajaxImpl = breeze.core.config.getAdapterInstance("ajax");<br>&nbsp; &nbsp;&nbsp; ajaxImpl.defaultSettings = {<br>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; headers: { <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // any CORS or other headers that you want to specify.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "X-Test-Header": "foo2" <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; },<br>&nbsp; &nbsp; };<br>&nbsp;&nbsp; <br>Alternatively, you can intercept the individual ajax calls and add your headers selectively based on the request. <br><br>&nbsp;&nbsp; &nbsp; var ajaxImpl = breeze.core.config.getAdapterInstance("ajax");<br>&nbsp; &nbsp;&nbsp; ajaxImpl.defaultSettings = {<br>&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; beforeSend: function(jqXHR, settings) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // examine the jqXHR or settings and customize the headers accordingly.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; jqXHR.setRequestHeader("X-Test-Before-Send-Header", "foo2");<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp; };]]>
   </description>
   <pubDate>Tue, 13 Nov 2012 10:34:04 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3764&amp;PID=15190#15190</guid>
  </item> 
  <item>
   <title>Setting headers with request : I can wait for the next release....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3764&amp;PID=15074#15074</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1569" rel="nofollow">sujesharukil</a><br /><strong>Subject:</strong> 3764<br /><strong>Posted:</strong> 03-Nov-2012 at 9:42pm<br /><br />I can wait for the next release. I am still evaluating breeze. Although I see Breeze.js as a powerful way to manage data and models on the client side, I still feel there are a few things missing before it can be included in an enterprise level library. Granted it is in Beta and it can do a lot and I know I will continue to watch this project and some day be in a position to actually make it our preferred library for the enterprise.<div><br></div><div>The decision finally came down to Complex type support. I know Breeze.js does not support complex types and it is in your roadmap and when it does, I Will be back again.</div><div><br></div><div>Keep the great work going. I will be using Breeze for almost anything that I build now. thank you.</div><div><br></div><div>-Suj</div>]]>
   </description>
   <pubDate>Sat, 03 Nov 2012 21:42:07 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3764&amp;PID=15074#15074</guid>
  </item> 
  <item>
   <title>Setting headers with request : Great question!, and an oversight...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3764&amp;PID=15071#15071</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1524" rel="nofollow">jtraband</a><br /><strong>Subject:</strong> 3764<br /><strong>Posted:</strong> 03-Nov-2012 at 12:52am<br /><br />Great question!, and an oversight on our part.&nbsp; We will be adding support for custom ajax headers in the next release, (or very soon thereafter).&nbsp; I can give you a fix that involves hacking the source as a temporary fix if you need something sooner.&nbsp;]]>
   </description>
   <pubDate>Sat, 03 Nov 2012 00:52:17 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3764&amp;PID=15071#15071</guid>
  </item> 
  <item>
   <title>Setting headers with request : Another question. How do I set...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3764&amp;PID=15069#15069</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1569" rel="nofollow">sujesharukil</a><br /><strong>Subject:</strong> 3764<br /><strong>Posted:</strong> 02-Nov-2012 at 7:04pm<br /><br />Another question. How do I set headers before letting breeze make a request?<br /><br />Example: my service expects a certain key to be part of the request in a header name 'x-service-key'. Till now, I was using jquery ajax and amplify, so pretty easy to set up the header. Since I don't have any control over the request that breeze is making, how do I pass extra stuff like headers?<br /><br />Thanks,<br />Suj]]>
   </description>
   <pubDate>Fri, 02 Nov 2012 19:04:52 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3764&amp;PID=15069#15069</guid>
  </item> 
 </channel>
</rss>