Hi Sharon,

 

No this default header is not helping in my case. I tried  by setting
the default header ,but got the same output. Only host ,user-agent and
cookie header were present.

 

The default headers are useful when we have to make any http request.

 

But here in my case the http client is making the request when I am
submitting the form. So the http client will set those headers.

Or there any way so that I can set those headers.

Is there any problem in http client?

 

 

Please tell me where I am wrong.

Thanks and regards

preeti

 

 

 

From: Sharon Lucas [mailto:luc...@us.ibm.com] 
Sent: Monday, May 23, 2011 10:36 PM
To: Padalia, Preeti
Cc: staf-users
Subject: Re: [staf-users] FW: problem in submit form

 

You can try to set headers using the HTTP service as follows (submitting
a SET DEFAULTHEADER request for each header you want to set): 

STAF local HTTP OPEN SESSION     (returns session# to use in subsequent
requests) 
STAF local HTTP DOGET URL <URL> SESSION <Session#> 
STAF local HTTP SET DEFAULTHEADER <Key> VALUE <Value> SESSION <Session#>

I do not know why these headers were not set when control goes from jsp
page to the servlet. 

--------------------------------------------------------------
Sharon Lucas
IBM Austin,   luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313




From:        "Padalia, Preeti" <preeti.pada...@fisglobal.com> 
To:        "staf-users" <staf-users@lists.sourceforge.net> 
Cc:        Sharon Lucas
<imceamailto-lucass+40us+2eibm+2e...@fisglobal.com> 
Date:        05/23/2011 01:15 AM 
Subject:        [staf-users] FW:  problem in submit form 

________________________________




  
Hi Sharon, 
  
  No I am not able to set those headers during submission of the form
using http services. 
Please tell me how I can set those headers. 
  
Thanks and regards 
Preeti 
  
From: Sharon Lucas [mailto:luc...@us.ibm.com <mailto:luc...@us.ibm.com>
] 
Sent: Saturday, May 21, 2011 12:51 AM
To: Padalia, Preeti
Cc: staf-users
Subject: Re: [staf-users] problem in submit form 
  
I don't know why the headers are not present.  Can you set those headers
using the  HTTP service?

--------------------------------------------------------------
Sharon Lucas
IBM Austin,   luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313




From:        "Padalia, Preeti" <preeti.pada...@fisglobal.com> 
To:        "staf-users" <staf-users@lists.sourceforge.net> 
Cc:        Sharon Lucas/Austin/IBM@IBMUS 
Date:        05/20/2011 07:27 AM 
Subject:        [staf-users] problem in submit form 

 

________________________________





Hi, 
 
I have an issue related to http service. 
I have an web application which is having a login page. On forms action
method its calling a java servlet which is performing any action after
checking the request header referer. 
 
Login page--- servlet---- any further action 
 
I am using staf http service for making a request for that login page.
and setting the values to the control and after it submitting the form
using  staf http service. 
Problem is when request comes to the servlet , in the request only
user-agent, host, cookie headers are present. 
 
And normally these are the headers which are present when request came
to that servlet. 
 
accept-language 
accept-encoding 
user-agent 
host 
connection 
cookie 
 
and these headers should be there for further processing. 
 
Please tell me what is the problem. 
 
Thanks and regards 
Preeti 
 
 
  

_____________

The information contained in this message is proprietary and/or
confidential. If you are not the intended recipient, please: (i) delete
the message and all copies; (ii) do not disclose, distribute or use the
message in any manner; and (iii) notify the sender immediately. In
addition, please be aware that any message addressed to our domain is
subject to archiving and review by persons other than the intended
recipient. Thank you.
_____________-----------------------------------------------------------
-------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
<http://p.sf.net/sfu/intel-dev2devmay>
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users
<https://lists.sourceforge.net/lists/listinfo/staf-users>  

_____________

The information contained in this message is proprietary and/or
confidential. If you are not the intended recipient, please: (i) delete
the message and all copies; (ii) do not disclose, distribute or use the
message in any manner; and (iii) notify the sender immediately. In
addition, please be aware that any message addressed to our domain is
subject to archiving and review by persons other than the intended
recipient. Thank you.
_____________-----------------------------------------------------------
-------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
<http://p.sf.net/sfu/intel-dev2devmay>
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users
<https://lists.sourceforge.net/lists/listinfo/staf-users> 

_____________

The information contained in this message is proprietary and/or confidential. 
If you are not the intended recipient, please: (i) delete the message and all 
copies; (ii) do not disclose, distribute or use the message in any manner; and 
(iii) notify the sender immediately. In addition, please be aware that any 
message addressed to our domain is subject to archiving and review by persons 
other than the intended recipient. Thank you.
_____________
------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to