473,473 Members | 1,581 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

setting a custom HTTP header in java or jsp

3 New Member
Anybody can help me in setting custom HTTP header in java?
Thanks
Jul 11 '07 #1
4 3976
r035198x
13,262 MVP
Anybody can help me in setting custom HTTP header in java?
Thanks
I assume you mean in a servlet?
Bookmark this.
Jul 11 '07 #2
PLA
44 New Member
Anybody can help me in setting custom HTTP header in java?
Thanks
In a HttpServlet in any method doXxxx you can call
resp.addHeader(java.lang.String name, java.lang.String value)
(resp is the HttpServletResponse)
Jul 11 '07 #3
sudhark
3 New Member
I assume you mean in a servlet?
Bookmark this.
I have an Authentication Filter to set new header like SAPUserId.
Jul 12 '07 #4
sudhark
3 New Member
In a HttpServlet in any method doXxxx you can call
resp.addHeader(java.lang.String name, java.lang.String value)
(resp is the HttpServletResponse)
Hi,

I am using AuthenticationFilter which will have request and response objects. I have to set header like "SAPUserID" and get the header value in the same class. Actually our application has a link from portal server. But for local testing we should set and get custom http header.

Thanks
Jul 12 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Madhav Desetty | last post by:
I have a legacy C/C++ header file which I use to set the version for DLLs thru' the .rc files while compiling legacy DLLs every day. I update this header file for every build and would like to use...
1
by: Mad Scientist Jr | last post by:
I am having a hard time figuring out how to set header text for a datagrid - I have found a number of pages on it but none work. Some seem to be for vb.net desktop applications not web. Can...
1
by: Stu | last post by:
Hi, Im using vis studio 2003 and I think wse is out of the question as clients could be using java which doesnt support it. So I managed to find some code which allows you to develop a custom...
1
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 on Apache 2 on Fedora Core 5. PHP was installed using Apache's apxs and the php library was installed to /usr/local/php. However, when I set my "error_reporting"...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.