commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vilson farias" <>
Subject [Digester] - How to add extra data to http headers
Date Wed, 24 Mar 2004 14:57:22 GMT

  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( 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
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive

Best regards,

José Vilson de Mello de Farias
Software Engineer

Dígitro Tecnologia Ltda -
APC - Customer Oriented Applications
Tel.: +55 48 281 7158 
ICQ 11866179
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message