PHP Developer News

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 […]
The post How to Specify User Agent with cURL appeared first on David Walsh Blog.


Most Popular in Blogs