[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

how to set the HTTP request header



hai all,
I don't know whether it is related to linux or not.But a general programming 
doubt.I am writing the client in java which communicates with the web server 
using HTTP protocol.Actually I am able to read the cookies that the server 
sends.My java client has to send back the cookie it recieves from the server 
for each and every transaction by setting the HTTP request header any class or 
method available in java to accomplish this.I use URLConnection but the 
getOutputStream sends the data as "Entity body" of the request.Any other way 
by which i can accomplish the setting of custom headers.
with regards
kamesh jayachandran

kamesh jayachandran
SoftWare Engineer 
PlanetAsia.com
Bangalore
See my work at www.electricalmachine.com