<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Asp.net Basic Authentication Kullanımı | SanalData | Yazılım ve Teknoloji Haberleri Sitesi</title>
	<atom:link href="https://www.sanaldata.com/e/asp-net-basic-authentication-kullanimi/feed" rel="self" type="application/rss+xml" />
	<link>https://www.sanaldata.com</link>
	<description>Yazılım ve teknoloji üzerine her türlü makaleye ulaşabileceğiniz site</description>
	<lastBuildDate>Thu, 06 Oct 2022 13:37:22 +0000</lastBuildDate>
	<language>tr</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://www.sanaldata.com/wp-content/uploads/2016/11/cropped-logo-32x32.png</url>
	<title>Asp.net Basic Authentication Kullanımı | SanalData | Yazılım ve Teknoloji Haberleri Sitesi</title>
	<link>https://www.sanaldata.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Asp.net Basic Authentication Örneği</title>
		<link>https://www.sanaldata.com/asp-net-basic-authentication-ornegi</link>
					<comments>https://www.sanaldata.com/asp-net-basic-authentication-ornegi#comments</comments>
		
		<dc:creator><![CDATA[Burak]]></dc:creator>
		<pubDate>Thu, 06 Oct 2022 13:37:22 +0000</pubDate>
				<category><![CDATA[Asp.net]]></category>
		<category><![CDATA[Asp.net Basic Authentication Examples]]></category>
		<category><![CDATA[Asp.net Basic Authentication Kullanımı]]></category>
		<guid isPermaLink="false">https://www.sanaldata.com/?p=2338</guid>

					<description><![CDATA[<p>Merhabalar, Asp.net ile entegrasyon yaparken WebClient bileşenin kullanarak veri post etmeniz gerekebilir. Tabi bunun öncesinde &#8221; Basic Authentication &#8221; ile doğrulama yapmanız istenirse ise direk aşağıdaki kodu kullanabilirsiniz. [crayon-69e611cd50806915007597/] Bu kadar 🙂</p>
The post <a href="https://www.sanaldata.com/asp-net-basic-authentication-ornegi">Asp.net Basic Authentication Örneği</a> first appeared on <a href="https://www.sanaldata.com">SanalData | Yazılım ve Teknoloji Haberleri Sitesi</a>.]]></description>
										<content:encoded><![CDATA[<p>Merhabalar,</p>
<p>Asp.net ile entegrasyon yaparken WebClient bileşenin kullanarak veri post etmeniz gerekebilir. Tabi bunun öncesinde &#8221; Basic Authentication &#8221; ile doğrulama yapmanız istenirse ise direk aşağıdaki kodu kullanabilirsiniz.</p><pre class="urvanov-syntax-highlighter-plain-tag">try
        {
            ServicePointManager.Expect100Continue = true; ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
            string api_key = "api_key";
            string api_secret = "api_secret";
            string post_url = "post url"
            WebClient client = new WebClient();           
            var base64EncodedAuthenticationString = Convert.ToBase64String(System.Text.ASCIIEncoding.UTF8.GetBytes(api_key + ":" + api_secret));
            client.Headers.Add("Authorization", "Basic " + base64EncodedAuthenticationString);
            client.Headers.Add("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; " + "Windows NT 5.2; .NET CLR 1.0.3705;)");
            client.Headers.Add("content-type", "application/json");
            string s = Encoding.ASCII.GetString(client.UploadData(post_url, "POST", Encoding.Default.GetBytes("{\n    \"email\": \"email adresi\",\n    \"password\": \" şifre alanı\"\n}")));
            Response.Write(s);
        }
        catch (Exception exp)
        {
            Response.Write(exp.Message);
        }</pre><p>Bu kadar <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>The post <a href="https://www.sanaldata.com/asp-net-basic-authentication-ornegi">Asp.net Basic Authentication Örneği</a> first appeared on <a href="https://www.sanaldata.com">SanalData | Yazılım ve Teknoloji Haberleri Sitesi</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.sanaldata.com/asp-net-basic-authentication-ornegi/feed</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
