Using the jakarta commons httpclient api, is there an easier way of setting the User-agent header than adding it to each HttpMethod, as in:
HttpMethod method = new GetMethod(loginUrl); method.setRequestHeader( "User-Agent", useragent ) ; Once I've gotten a response body, are there any classes to parse it into an HTML tree? I'm particularly interested in finding forms and their attributes, so as to fill in the form and POST it. Thanks, Tom --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]