It may sometimes be necessary to modify the default WPM User-Agent header. Typically, this is to allow access through a firewall or to provide a filtering method for site analytics, such as Google Analytics.
The following code should be in the script before the HTTP request is sent. This code works for both RBU and VU.
c.removeHeader("User-Agent");
c.addHeader("User-Agent", "Value");
In place of "Value," add the desired User-Agent string.