Answers.Body: <p>This would be up to the FeedMe plugin.</p>
  
  <p>It looks like they're using <a href="https://github.com/engram-design/FeedMe/blob/master/feedme/services/FeedMe_FeedService.php#L193" rel="nofollow">cURL</a> directly, so they would need to either directly set <a href="https://curl.haxx.se/libcurl/c/CURLOPT_USERAGENT.html" rel="nofollow">CURLOPT_USERAGENT</a> or allow for it to be configured via a setting.</p>
  
  <p>Feel free to create an <a href="https://github.com/engram-design/FeedMe/issues" rel="nofollow">issue</a> / <a href="https://github.com/engram-design/FeedMe/pulls" rel="nofollow">pull request</a> on their repo.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-11-06T17:50:03.300Z
Answers.Text: For anyone interested, FeedMe 2.0 has added this feature!
Answers.UserDisplayName: Mike Pringle
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-08-05T17:51:34.353Z
Answers.LastActivityDate: 2016-08-05T17:51:34.353Z
Answers.UserDisplayName: Brad Bell
Body: <p>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.</p>
  
  <p>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.</p>
  
  <p>Is it possible to configure Craft or FeedMe to send a custom user agent string in all GET requests for external data?</p>
  
Tags: <plugin-feedme><xml>
Title: FeedMe plugin and weather.gov XML
ThreadText: # FeedMe plugin and weather.gov XML
  
  (Asked by: username_0 on 2016-08-05)
  
  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?
  
  **Tags:** plugin-feedme, xml
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-08-05. Score: 1 | Accepted answer
  
  This would be up to the FeedMe plugin.
  
  It looks like they're using [cURL](https://github.com/engram-design/FeedMe/blob/master/feedme/services/FeedMe_FeedService.php#L193) directly, so they would need to either directly set [CURLOPT\_USERAGENT](https://curl.haxx.se/libcurl/c/CURLOPT_USERAGENT.html) or allow for it to be configured via a setting.
  
  Feel free to create an [issue](https://github.com/engram-design/FeedMe/issues) / [pull request](https://github.com/engram-design/FeedMe/pulls) on their repo.
  
  > **Comments:**
  > **username_0**: For anyone interested, FeedMe 2.0 has added this feature!  
  
  ---
  
  