<?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>http &#8211; Accidents Happen</title>
	<atom:link href="https://ah.thameera.com/tag/http/feed/" rel="self" type="application/rss+xml" />
	<link>https://ah.thameera.com</link>
	<description>In the dark</description>
	<lastBuildDate>Sun, 15 Oct 2017 17:41:30 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
<site xmlns="com-wordpress:feed-additions:1">56521109</site>	<item>
		<title>Reading a User-Agent header</title>
		<link>https://ah.thameera.com/reading-a-user-agent-header/</link>
					<comments>https://ah.thameera.com/reading-a-user-agent-header/#respond</comments>
		
		<dc:creator><![CDATA[thameera]]></dc:creator>
		<pubDate>Sun, 15 Oct 2017 17:41:30 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[http]]></category>
		<guid isPermaLink="false">http://ah.thameera.com/?p=603</guid>

					<description><![CDATA[Tweet by @jschauma: So all y’all know that UserAgent strings are total bullshit, right? pic.twitter.com/72AudaHWeA &#8212; Jan Schaumann (@jschauma) October 13, 2017 Whenever a browser makes an HTTP request to a server, the browser sends in a User-Agent header, so the server can know what kind of a browser/agent the request is coming from. I&#8217;m [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a href="https://twitter.com/jschauma/status/918668677624619008">Tweet</a> by @jschauma:</p>
<blockquote class="twitter-tweet">
<p lang="en" dir="ltr">So all y’all know that UserAgent strings are total bullshit, right? <a href="https://t.co/72AudaHWeA">pic.twitter.com/72AudaHWeA</a></p>
<p>&mdash; Jan Schaumann (@jschauma) <a href="https://twitter.com/jschauma/status/918668677624619008?ref_src=twsrc%5Etfw">October 13, 2017</a></p></blockquote>
<p>Whenever a browser makes an HTTP request to a server, the browser sends in a <a href="https://en.wikipedia.org/wiki/User_agent">User-Agent header</a>, so the server can know what kind of a browser/agent the request is coming from. I&#8217;m writing this post in a Safari browser in macOS and the string it sends is:</p>
<blockquote><p><code>User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Safari/604.1.38</code></p></blockquote>
<p>It says Mozilla at the beginning, but it&#8217;s not Firefox.</p>
<p>Confusingly, the User-Agent string of Google Chrome has both Mozilla and Safari in addition to Chrome:</p>
<blockquote><p><code>Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36</code></p></blockquote>
<p>These strings will change depending on both the browser version and the OS you are on.</p>
<p>While these strings seem cryptic, you can use this handy guide from MDN to identify the browser from User-Agent strings: <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Browser_detection_using_the_user_agent#Browser_Name">https://developer.mozilla.org/en-US/docs/Web/HTTP/Browser_detection_using_the_user_agent#Browser_Name</a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://ah.thameera.com/reading-a-user-agent-header/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">603</post-id>	</item>
	</channel>
</rss>
