This should have been simple. A client's site is required to display current weather observation data retrieved via XML from w1.weather.gov. My solution was to use the on-demand features of FeedMe in a twig template to accomplish this.

As it turns out, weather.gov recently began requiring inclusion of a user agent string in the header to identify the requestor of any XML feed. If no user agent string is present, it returns error 403.

Is it possible to configure Craft or FeedMe to send a custom user agent string in all GET requests for external data?

1 Answer 1


This would be up to the FeedMe plugin.

It looks like they're using cURL directly, so they would need to either directly set CURLOPT_USERAGENT or allow for it to be configured via a setting.

Feel free to create an issue / pull request on their repo.

  • For anyone interested, FeedMe 2.0 has added this feature! Nov 6, 2016 at 17:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.