HTTP plugin. What is the useragent? or how do I set it?

Hi,

I’m a using the http plugin from a headless client to consume web services from a web site. This is all works fast and fine.

Now, I have added code not to generate shopping baskets for robots such as Googlebot and Yahoo slurp by checking the useragent of the page request.

I’d like to do the same for my web service requests from Servoy, but don’t know what useragent to filter out or how to generate some unique useragent…

Any ideas?

Sorry ,no idea ,but may you good luck

If you setup a client first with .createHttpClient() before .getPageData it uses apache httpclient

“Jakarta Commons-httpclient/$VERSION”

Or if you just use .getPageData() it uses java.net.URLConnection

“Java/$VERSION”

$VERSION is the java version of the client with plain .getPageData().
$VERSION is the version of apache httpclient when you use .createHttpClient() - although I can’t recall off the top of my head what version of httpclient servoy uses. But that should give you enough to filter.