Added support for a custom user agent for HTTP pings. Would be great if you'd consider adding this.
allow for custom user agent
Looks alright. May I ask the motivation for this? Just curious.
Some sites do redirects of incoming requests based on the user agent (for instance to forward a non-mobile user to a different page). In my specific case, this is to avoid the redirect but just ping the mobile version of a site.
Allow for custom user agent.