<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/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>Authentication in web services with HttpWebRequest</title><link>http://blogs.msdn.com/b/buckh/archive/2004/07/28/199706.aspx</link><description>Hatteras has three tiers: client, middle, and data. The middle tier is an ASP.NET web service on a Windows 2003 Server running IIS 6. When the client (we use C# for both it and the middle tier) connects to the middle tier, it must authenticate with IIS</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Authentication in web services with HttpWebRequest</title><link>http://blogs.msdn.com/b/buckh/archive/2004/07/28/199706.aspx#10118075</link><pubDate>Thu, 20 Jan 2011 10:50:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10118075</guid><dc:creator>Caroline</dc:creator><description>&lt;p&gt;Thanks Buck,...&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10118075" width="1" height="1"&gt;</description></item><item><title>re: Authentication in web services with HttpWebRequest</title><link>http://blogs.msdn.com/b/buckh/archive/2004/07/28/199706.aspx#10117641</link><pubDate>Wed, 19 Jan 2011 15:06:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10117641</guid><dc:creator>Buck Hodges</dc:creator><description>&lt;p&gt;Caroline, unfortunately I don&amp;#39;t know as I haven&amp;#39;t had a need to do it. &amp;nbsp;Maybe someone else will comment. Your best bet may be the MSDN forums.&lt;/p&gt;
&lt;p&gt;Buck&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10117641" width="1" height="1"&gt;</description></item><item><title>re: Authentication in web services with HttpWebRequest</title><link>http://blogs.msdn.com/b/buckh/archive/2004/07/28/199706.aspx#10117568</link><pubDate>Wed, 19 Jan 2011 12:04:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10117568</guid><dc:creator>Caroline</dc:creator><description>&lt;p&gt;How can I use NetworkCredentials in my code to connect to a authenticated website, i.e &lt;/p&gt;
&lt;p&gt;https://username:password@www.mysite.com ?field1=value1&amp;amp;field2=value2&amp;amp;..&lt;/p&gt;
&lt;p&gt;I tried &lt;/p&gt;
&lt;p&gt;HttpWebRequest req = (HttpWebRequest)WebRequest.Create(&amp;quot;https://username:password@www.mysite.com ?field1=value1&amp;amp;field2=value2&amp;quot;);&lt;/p&gt;
&lt;p&gt;req.Credentials = new NetworkCredential(&amp;quot;user1&amp;quot;, &amp;quot;foo&amp;quot;);&lt;/p&gt;
&lt;p&gt;HttpWebResponse res = (HttpWebResponse)req.GetResponse();&lt;/p&gt;
&lt;p&gt;At dis point i m &amp;nbsp;getting the error - 400:bad request ...&lt;/p&gt;
&lt;p&gt;Can someone fix it out... Thanks in advance&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10117568" width="1" height="1"&gt;</description></item><item><title>re: Authentication in web services with HttpWebRequest</title><link>http://blogs.msdn.com/b/buckh/archive/2004/07/28/199706.aspx#9859920</link><pubDate>Fri, 07 Aug 2009 09:40:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9859920</guid><dc:creator>Nick</dc:creator><description>&lt;p&gt;Thanks Buck, Much appreciated!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9859920" width="1" height="1"&gt;</description></item><item><title>re: Authentication in web services with HttpWebRequest</title><link>http://blogs.msdn.com/b/buckh/archive/2004/07/28/199706.aspx#9856658</link><pubDate>Tue, 04 Aug 2009 03:54:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9856658</guid><dc:creator>Buck Hodges</dc:creator><description>&lt;p&gt;Nick, you can have the web app call the middle tier with the identity used by the client if the middle tier is on the same computer if you are using NTLM. &amp;nbsp;If the web app and the middle tier are on different computers, you either need to have NTLM constrained delegation, which most IT departments will not grant, or you need to use Kerberos (aka Negotiate).&lt;/p&gt;
&lt;p&gt;Buck&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9856658" width="1" height="1"&gt;</description></item><item><title>re: Authentication in web services with HttpWebRequest</title><link>http://blogs.msdn.com/b/buckh/archive/2004/07/28/199706.aspx#9856013</link><pubDate>Mon, 03 Aug 2009 11:27:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9856013</guid><dc:creator>Nick</dc:creator><description>&lt;p&gt;So when you say current logged in user is this user the user that has logged into the Web App or the user under which the asp.net app is running?&lt;/p&gt;
&lt;p&gt;That is, can you have&lt;/p&gt;
&lt;p&gt;End User Login via Internet Explorer to Web App --&amp;gt; Web App invokes Middle Tier with End User Identity?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9856013" width="1" height="1"&gt;</description></item><item><title>Datei aus Netzwerk-Freigeb lesen | hilpers</title><link>http://blogs.msdn.com/b/buckh/archive/2004/07/28/199706.aspx#9347823</link><pubDate>Tue, 20 Jan 2009 18:17:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9347823</guid><dc:creator>Datei aus Netzwerk-Freigeb lesen | hilpers</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.hilpers.com/275554-datei-aus-netzwerk-freigeb-lesen"&gt;http://www.hilpers.com/275554-datei-aus-netzwerk-freigeb-lesen&lt;/a&gt;&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9347823" width="1" height="1"&gt;</description></item><item><title>re: Authentication in web services with HttpWebRequest</title><link>http://blogs.msdn.com/b/buckh/archive/2004/07/28/199706.aspx#8969457</link><pubDate>Mon, 29 Sep 2008 23:36:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8969457</guid><dc:creator>Ben</dc:creator><description>&lt;p&gt;Hey Buck,&lt;/p&gt;
&lt;p&gt;Thanks for this -- works like a charm!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8969457" width="1" height="1"&gt;</description></item><item><title>re: Authentication in web services with HttpWebRequest</title><link>http://blogs.msdn.com/b/buckh/archive/2004/07/28/199706.aspx#8933590</link><pubDate>Mon, 08 Sep 2008 18:03:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8933590</guid><dc:creator>Buck Hodges</dc:creator><description>&lt;p&gt;Dennis, that sounds like an issue either with a firewall or with an internet proxy on the network. &amp;nbsp;To test the latter, try configuring your IE settings not use any proxy (.NET network code uses the IE connection settings, unless you override them in code).&lt;/p&gt;
&lt;p&gt;Buck&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8933590" width="1" height="1"&gt;</description></item><item><title>re: Authentication in web services with HttpWebRequest</title><link>http://blogs.msdn.com/b/buckh/archive/2004/07/28/199706.aspx#8922325</link><pubDate>Wed, 03 Sep 2008 20:15:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8922325</guid><dc:creator>dennis sacks</dc:creator><description>&lt;p&gt;I am trying to call a web service that uses basic authentication. I generated the web client proxy using wsdl.exe (I'm using .net 2.0)&lt;/p&gt;
&lt;p&gt;I create a CredentialCache, add credentials to it, and assign the cache to the service.Credentials but am still getting an exception when I call the service (unable to read data from the transport connection: An existing connection was forcibly closed by the remove host&amp;quot;). Do you have any ideas what else might be going on?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8922325" width="1" height="1"&gt;</description></item></channel></rss>