csirtgadgets / massive-octo-spice

DEPRECATED - USE v3 (bearded-avenger)
https://github.com/csirtgadgets/bearded-avenger-deploymentkit/wiki
GNU Lesser General Public License v3.0
227 stars 62 forks source link

Set user agent in feeds #460

Closed byrug4 closed 7 years ago

byrug4 commented 7 years ago

A user agent field would be fine to user for feeds. There are feeds (eg.: clean mx) require customized user agent settings: http://support.clean-mx.de/clean-mx/xmlviruses.php

Linux cifprod1 3.19.0-25-generic #26~14.04.1-Ubuntu SMP Fri Jul 24 21:16:20 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

Ubuntu 14.04.4 LTS \n \l

CIF v2

wesyoung commented 7 years ago

was there a question in there somewhere? :)

we do set the user-agent:

https://github.com/csirtgadgets/massive-octo-spice/blob/develop/src/lib/CIF/Smrt/Fetcher.pm#L28