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
From: Sharon Lucas [mailto:luc...@us.ibm.com]
Sent: Friday, May 20, 2011 4:20 AM
To: John Andoh
Cc: staf-users@lists.sourceforge.net
Subject: Re: [staf-users] Using STAF with a powershell snapin
I don't know anything about Powershell snapins. But, if you specify the
following does it work?
C:\>STAF local PROCESS START SHELL COMMAND "powershell -ExecutionPolicy
UNRESTRICTED -command C:\\test.ps1" WAIT RETURNSTDOUT RETURNSTDERR
SAMECONSOLE
--------------------------------------------------------------
Sharon Lucas
IBM Austin, luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313
From: John Andoh <john.an...@gmail.com>
To: staf-users@lists.sourceforge.net
Date: 05/19/2011 05:34 PM
Subject: [staf-users] Using STAF with a powershell snapin
________________________________
Dear staf-users,
I am having problems running a Powershell script, test.ps1, with the
"STAF PROCESS START SHELL" command.
The script loads a Powershell snapin,
Storage.Management.Powershell.Admin, and executes a command,
get-subsystem, implemented by the snap-in.
This is the content of the powershell script, test.ps1.
C:\>type test.ps1
add-pssnapin Storage.Management.Powershell.Admin
get-subsystem
C:\>
C:\>
This is the expected result for running the script in the DOS command
prompt:
C:\>powershell.exe -ExecutionPolicy UNRESTRICTED -command c:\test.ps1
There is no subsystems added.
However, if the powershell script is run with "STAF PROCESS START SHELL"
command, I ran into problems registering the snapin, as seen from the
error messages below:
C:\>STAF local PROCESS START SHELL "powershell.exe -ExecutionPolicy
UNRESTRICTED -command %c" COMMAND c:\test.ps1 WAIT RETURNSTDOUT
RETURNSTDERR SAMECONSOLE
Response
--------
{
Return Code: 0
Key : <None>
Files : [
{
Return Code: 0
Data :
}
{
Return Code: 0
Data : Add-PSSnapin : No snap-ins have been registered for
Windows PowerShell version 2.
At C:\test.ps1:3 char:13
+ add-pssnapin <<<< Storage.Management.Powershell.Admin
+ CategoryInfo : InvalidArgument:
(Storage...owershell.Admin:String) [Add-PSSnapin], PSArgumentException
+ FullyQualifiedErrorId :
AddPSSnapInRead,Microsoft.PowerShell.Commands.AddPSSnapinCommand
The term 'get-subsystem' is not recognized as the name of a cmdlet,
function, script file, or operable program. Check the spelling of the
name, or if a path was included, verify that the pa
th is correct and try again.
At C:\test.ps1:4 char:14
+ get-subsystem <<<<
+ CategoryInfo : ObjectNotFound: (get-subsystem:String) [],
CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
}
]
}
C:\>
I will appreciate your help to resolve this problem. Thanks.
Regards,
John Andoh
------------------------------------------------------------------------
------
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
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users