File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Getting and sending Header information, help needed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Getting and sending Header information, help needed" Watch "Getting and sending Header information, help needed" New topic

Getting and sending Header information, help needed

Declan Conlon
Ranch Hand

Joined: Jul 03, 2001
Posts: 34
Does anyone know how to send a int or long value from an applet to a servlet as header information? I know there is a method getIntHeader() but how do you send things on the client side that are accessable by it?
Thanks for you help.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15960

I thought I might have known a way to do that, but the code is in the hands of a previous employer and I can't find anything. I do know that the Java environment is supplying headers itself -- which turned out to be very useful, since one of the headers sent silently is the cookie that identifies the user session.
Headers are intended for use by the client and server containers, and I could see Sun actually forbidding user-defined headers to prevent "spoofed" client info. Is a header really what you need, or could it be done via a URI parameter?

Customer surveys are for companies who didn't pay proper attention to begin with.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Getting and sending Header information, help needed
Similar Threads
unable to understand how to use actor or role SOAP Header attribute
URGENT !!! How Do I download Image files using HTTP.
Cant Send html file through email
Who had been hacked?
Setting headers on Http Request