request

How to send SOAP request header in Java?

Hi. I have a WSDL file (the web-service has written by .NET) and i can generate the java web-service client proxy classes and codes in IntelliJ IDEA 7.0.4 by its tool. the web-service has a soap request header , but i can't see any property or method in auto generated Java proxy classes and codes to set the request header. (but when i u...

Struts2 - Access request object inside action's execute method

Is it possible to access the request object inside an struts2 action's execute() method? My requirement is to get some parameter value from the request scope which is being sent by some third party site, using URL redirection. ...

Opensocial v9 : Is there a way of requesting only certain field from orkut

I am trying to write a pager from my application which require to get the total number of albums. I can fetch all albums from the orkut but it slow down the transfer rate since I only need the total not the data in the albums. Does opensocial v9 has a function I can check how many albums a viewer has? or maybe I fetch only the ID of th...

Security Risk? $_REQUEST variables ... $$ on the local stack

I was talking with one of my programmers earlier and he showed me a piece of code he was considering: foreach($_REQUEST as $var=>$val) { $$var = addslashes($val); } He wanted to be able to use $varName instead of having to write $_REQUEST['varName'] I advised him to use the mysql_real_escape_string instead of addSlashes and to no...

Coldfusion concurrent ajax post

Hi All, I'm creating a script for uploading and processing something. user upload an excel file in the destination script, the excel data are converted to a query the query converted to json using SerializeJSON and then this json data is submitted one by one using ajax and setInterval function currently the interval for setInverval...

Sharepoint 2007 approval email.

Hi Guys, in our Company we have a Sharepoint 2007 Server which we are using to keep track of our cars. What I try to achieve is to have a aspx page where you can select a car of the cars list and then click "request". If you did that the page must switch to another text saying something like "car request in progress" (and of course hide...

call to undefined method Request::getParam ???

Fatal error: Call to undefined method Request::getParam() in C:\wamp\www\Admin\corporate\for-upload\activecollab\application\modules\system\controllers\CompaniesController.class.php on line 219 in controller class I've written $this->request->getParam('is_owner'); and in request i've passed $router->map('people_companies_add_owne...

xsi:nil="true" in soap request

Hi, I have xsi:nil="true" in my soap request. What does mean? How can I pass value on that? Any help is appreciated ...

Changing base template based on request.user in Django

I want to modify part of my base navigation menu based on a flag on the user model, without having to include request.user in every single view function in my codebase. The nav menu is part of the base template which every other template extends. Is there a simple way to do this (if so, I suck at search)? If not, is there a standard w...

can i restrict mongoose web server to not Accept http request but only from the host application

Hi I embedded the mongoose web server in my application it just showing bunch of web pages I opening port on localhost , but its mean I can send request from any ware in the network , this is something I like to prevent Is there any way to tell the web server to Accept request only from the host application? ...

How to pass POST data to the PHP-CGI?

Update: In a fit of desperation, I did the following in a shell: REDIRECT_STATUS=true SCRIPT_FILENAME=/var/www/... REQUEST_METHOD=POST GATEWAY_INTERFACE=CGI/1.1 export REDIRECT_STATUS export SCRIPT_FILENAME export REQUEST_METHOD export GATEWAY_INTERFACE echo "test=1" | php-cgi ...and STILL no $_POST variables are showing up in the ou...

Request.Browser Changed for Firefox

My code looks at the browser you are using to see if you have a correct browser to run the website (I know, I am getting rid of it). The site has ran fine until today. The code looks is: Request.Browser.Browser.ToLower().indexOf("firefox") When this == -1 then I get sent to a page saying "please upgrade". Like I said, this used to ...

How to alter the state of spring session/request scoped beans?

Hello all, I really like to use spring stereotype annotated beans in spring MVC apps and would like to use Spring scope annotations to the full extend. No more need to fiddle around in HttpServletRequest or it' s session. One thing isn' t really clear to me though and maybe someone could provide me with some insight or explanation on ho...

How can I locally intercept and respond to browser requests?

I want to set something up on my computer where if something (program, browser, whatever) makes a request (to a certain domain, I guess) I can send my own response to the request. I once saw a program that did that, and I was wondering how it did it. How would it be done? ...