How to Specify User Agent with cURL
Over the years I've shared how to perform a number of actions with cURL: how to send POST data, how to retrieve headers, follow redirects, check GZIP encoding, and more.  Another useful cURL directive is sending the user agent, as some servers respond with different content or headers depending on the user agent.  Let's have a look at how easy it is to send the user agent with cURL!
The user agent may be sent with the -A or --user-agent directives:
curl -A "MY-USER-AGENT" https://www.whatismybrowser.com/detect/what-is-my-user-agent
# .... Your user agent is: `MY-USER-AGENT` ...
Luckily we don't rely on user agent strings as much as we did in the early days of the web, but we'd be naive to assume that they no longer modify the output of all websites!
![5 Awesome New Mozilla Technologies You’ve Never Heard Of]()
My trip to Mozilla Summit 2013 was incredible.  I've spent so much time focusing on my project that I had lost sight of all of the great work Mozillians were putting out.  MozSummit provided the perfect reminder of how brilliant my colleagues are and how much...
![Camera and Video Control with HTML5]()
Client-side APIs on mobile and desktop devices are quickly providing the same APIs.  Of course our mobile devices got access to some of these APIs first, but those APIs are slowly making their way to the desktop.  One of those APIs is the getUserMedia API...
![iPhone-Style Passwords Using MooTools PassShark]()
Every once in a while I come across a plugin that blows me out of the water and the most recent culprit is PassShark:  a MooTools plugin that duplicates the iPhone's method of showing/hiding the last character in a password field.  This gem of...
![Create a Simple News Scroller Using MooTools, Part I:  The Basics]()
News scroller have been around forever on the internet.  Why?  Because they're usually classy and effective.  Over the next few weeks, we'll be taking a simple scroller and making it into a flexible, portable class.  We have to crawl before we...