<?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>user agent Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/user-agent/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Thu, 21 Jun 2018 20:42:05 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>Change User Agent on cURL</title>
		<link>https://www.osradar.com/change-user-agent-on-curl/</link>
					<comments>https://www.osradar.com/change-user-agent-on-curl/#respond</comments>
		
		<dc:creator><![CDATA[Mel]]></dc:creator>
		<pubDate>Sat, 19 May 2018 15:21:04 +0000</pubDate>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[curl user agent]]></category>
		<category><![CDATA[user agent]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=3165</guid>

					<description><![CDATA[<p>cURL is a really useful tool for Linux users. This tool can easily download all the files from the internet over lots of supported protocols – FTP, HTTPS, IMAP, POP3, RTSP, SMB, SMTP, SCP, DICT etc. and lot more. That’s why it’s my favorite tool to download files from the internet instead of “wget”. When [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/change-user-agent-on-curl/">Change User Agent on cURL</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>cURL is a really useful tool for Linux users. This tool can easily download all the files from the internet over lots of supported protocols – FTP, HTTPS, IMAP, POP3, RTSP, SMB, SMTP, SCP, DICT etc. and lot more. That’s why it’s my favorite tool to download files from the internet instead of “wget”. When you use cURL, the server sees you as a browser requesting file access. Now, let&#8217;s take a look how to change the user agent of cURL.</p>
<p>When connecting to the server, the program sends a data like this – “<em>Mozilla/5.0 (X11; Ubuntu; Linux x86_64; </em>rv<em>:59.0) Gecko/20100101 Firefox/59.0</em>”. The server identifies that you’re using Firefox (although you’re not). You can set out the option of your favorite browser as user-agent of the cURL tool.</p>
<h3>Changing the user-agent</h3>
<p>In cURL, the syntax for changing the user-agent follows this structure –</p>
<pre>curl -A "user-agent-name-here" url
curl --user-agent "user-agent-name-here" url
curl -H "User-Agent: user-Agent-Name-Here"</pre>
<p>The user agent also follows this structure –</p>
<pre>Mozilla/[version] ([system and browser information]) [platform] ([platform details]) [extensions]</pre>
<p>In this command line example, I’ll be using Firefox as the user-agent of cURL for connecting with <a href="http://www.osradar.com/">OSRadar</a>.</p>
<pre>$ curl -A "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:59.0) Gecko/20100101 Firefox/59.0" https://www.osradar.com/
$ curl -I -A "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:59.0) Gecko/20100101 Firefox/59.0" https://www.osradar.com/</pre>
<p><img loading="lazy" class="size-full wp-image-3168 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/05/curl-firefox-user-agent.png" alt="" width="1185" height="506" srcset="https://www.osradar.com/wp-content/uploads/2018/05/curl-firefox-user-agent.png 1185w, https://www.osradar.com/wp-content/uploads/2018/05/curl-firefox-user-agent-300x128.png 300w, https://www.osradar.com/wp-content/uploads/2018/05/curl-firefox-user-agent-768x328.png 768w, https://www.osradar.com/wp-content/uploads/2018/05/curl-firefox-user-agent-1024x437.png 1024w, https://www.osradar.com/wp-content/uploads/2018/05/curl-firefox-user-agent-696x297.png 696w, https://www.osradar.com/wp-content/uploads/2018/05/curl-firefox-user-agent-1068x456.png 1068w, https://www.osradar.com/wp-content/uploads/2018/05/curl-firefox-user-agent-984x420.png 984w" sizes="(max-width: 1185px) 100vw, 1185px" /></p>
<p>If you want to use your user-agent as Safari, use this command line –</p>
<pre>curl -H "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_1) AppleWebKit/537.36 (K HTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36" https://www.osradar.com/</pre>
<p><img loading="lazy" class="size-full wp-image-3169 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/05/curl-user-agent-safari.png" alt="" width="1181" height="460" srcset="https://www.osradar.com/wp-content/uploads/2018/05/curl-user-agent-safari.png 1181w, https://www.osradar.com/wp-content/uploads/2018/05/curl-user-agent-safari-300x117.png 300w, https://www.osradar.com/wp-content/uploads/2018/05/curl-user-agent-safari-768x299.png 768w, https://www.osradar.com/wp-content/uploads/2018/05/curl-user-agent-safari-1024x399.png 1024w, https://www.osradar.com/wp-content/uploads/2018/05/curl-user-agent-safari-696x271.png 696w, https://www.osradar.com/wp-content/uploads/2018/05/curl-user-agent-safari-1068x416.png 1068w, https://www.osradar.com/wp-content/uploads/2018/05/curl-user-agent-safari-1078x420.png 1078w" sizes="(max-width: 1181px) 100vw, 1181px" /></p>
<p>Enjoy cURL!</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/change-user-agent-on-curl/">Change User Agent on cURL</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/change-user-agent-on-curl/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
