I don't believe you can.
I know if you can get down to a HttpURLConnection, you can call setRequestHeader to set the User-Agent to whatever you want, but I cannot see a way of getting Xerces to use a custom connection...
I will keep digging, but I don't think it's going to be easy :-(
It's a problem with Java rather than Groovy this... I don't know how you'd do it in Java either... Maybe if one of the mods could put it into;
Java AND Groovy (rather than Apache Web Server)
you'll stand the best chance of getting an answer... (probably before I can read the xerces source to see where -- if anywhere -- this could be done)
Tim
Main Topics
Browse All Topics





by: objectsPosted on 2009-06-10 at 16:17:42ID: 24597453
you have posted your question in the wrong zone