Quoting Vilson farias <[EMAIL PROTECTED]>: > Greetings, > > I have new rules for http requests here in my company that force > applications to use specifc user agent strings in all html request headers. > > I'd like to change user agent for digester requests. Actually I just call > digester.parse (java.lang.String uri)and everything is done internally by > Digester but I think I'll need to do the job by myself and start executing > digester.parse(java.io.InputStream input) instead of old way. Is it a good > approach? Is there an easier way to do it? > > Here is an example of a modified html header : > > GET /dispositivo.xml HTTP/1.1 > User-Agent: Digitro_Application-1.0.1 > Host: bxs00.daf.digitro.com.br:9876 > Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 > Connection: keep-alive > > Best regards,
It's not clear to me what Digester has to do with HTTP headers. Does this mean that you are calling Digester.parse() with an "http" URL? If so, you'll probably need to use separate code (perhaps with [httpclient]) to get the resource and copy it in to some local file, and then parse it locally. > Jos� Vilson de Mello de Farias Craig --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
