request

Android Handle requests

Hi all! I am developing a multi-player game for android. I already have all the mechanical part of the game done and for now, I have to handle the requests between players. So, imagine the follow situation. The player A choose his opponent and make his move. He only can play x or y. The player B have to receive a notification that the ...

Request URL formatting

I am developing an iPhone application from where I need to be able to post a new topic in Yahoo finance message boar at http://messages.finance.yahoo.com/mb/KERX. How do I format the request URL? PLease xcuse my ignorence m very new in this kind of work. I just need the base url to use and the method that will post my topic to the messag...

My Facebook invite page is not working

When im logged in and i click on invite friends on facebook from my website, it shows a page to enter password, if i do , it takes me to my facebook home page. If am not logged in, it shows a blank page. Please what couldd be the possible problem(s) My facebook invite page: $api_key = 'xxx'; $secret = 'xxx'; $app_name = "Skoola-In...

ASP.NET-4.0 WebForms post Routing event

How can you hook on to an event that gets fired directly after the Routing / mapping is done? I want to perform some actions directly after the Routing is done and the mapped URL is available. I tried PreRequestHandlerExecute, but that event is fired just before the Routing takes place. I can't find any other place. PostRequestHandlerEx...

HTML: Request - Response Redirection

Lets say I have a website www.mySite.com and there are a lot of pages whose links are www.mySite.com\contact.php and www.mySite.com\about.php. What if I want that when someone enters a direct link like www.mySite.com\about.php instead of opening that page it should go to a page myPolicy.php and then myPolicy.php may\may not refer the us...

What's the simplest javascript function for requesting a .js file?

Hello, I was just wondering what the simplest javascript function would be to request a server side .js file. Currently I have a jquery-1.4.2.min file that weighs in at 70kb, and I figured that there has to be a way, using javascript, to request this file. That way, if the user doesn't have javascript enabled the function would be i...

asp.net 3.5 Request variables??

I'm looking for a Per Request place to store some variables. I thought there was a name/value dictionary on HttpRequest, but I don't see one (besides Cookies or ServerVariables). This App is .Net 3.5. Can anyone suggest a Per Request storage area? --Thanks ...

Passing variable to callback after Ajax request

Is there a more elegant way of passing a variable after performing an Ajax request (JS->PHP) other than printing the results? Printing can get a little messy and also doesn't offer a lot of flexibility in terms of the return value (e.g. hard to pass objects). Also, I had this random space that was printed in one of my Ajax request cal...

Force session ID from request

Does anyone have any thoughts about why this wouldn't work? if(isset($_POST['PHPSESSID'])) { session_id($_POST['PHPSESSID']); session_start(); var_dump($_SESSION); } The var_dump($_SESSION); is always empty! It should be loaded with stuff! Are there any settings that prevent forcing session IDs? Auto start is not enabled. ...

How to process and insert user defined variable from/in SOAP Response/Request i in Jmeter ? SOAP request parametrization in jmeter

Hello I am trying to solve following problem: I have a system with which communication is done through SOAP (XML over http). In Jmeter I am using SOA/XML-RPC (not wsdl based webservice). I am sending one SOAP request and receiving response in vollowing tag <Prodrevision>5</Prodrevision> This number changes from time to time and goal...

Request Accept media type in RESTlet 2

How can I identify the resource media type in RESTlet2, I tried following in my class extended from ServerResource @Get public Object onGET(){ System.out.println("================="); System.out.println(this.getRequestEntity().getMediaType()); ... It prints a null when I do any request. I want to get the list of all Accept medi...

Ad requests never filled with AdMob

Well, I get this message all the time using AdWhirl: Unable to fill ad request. This is a common situation. I think it's from the AdMob network. I also have a couple of other networks (registered yesterday) and I never seem to be getting any ad requests filled. In test mode it does work though. Now is this common and will it pick ...

How do I detect the client has javascript turned on/off from Rails?

I don't want to deal with users who have javascript turned off, so I want to just prevent them from using my application. I want to detect if the user has javascript turned on so I can redirect them to a page that tells them they need to use javascript. I'm sure its in the request header. Anyone have any ideas how I can do this? ...

When POSTing via AJAX / jQuery, one big request or a lot of little ones?

Alright I'm going to create a fairly complex form to post via AJAX a lot of different types of information PHP page which will then parse the data and CURL the various datatypes into the correct tables in another database. Usually I just send a HUGE POST request and then parse the information in the PHP page, making multiple CURL reques...

Twitter oauth Request Token Response code 401

Hello, I am working on a twitter oauth login. However, when I do the request_token, the very first step, the response code always return 401 Unauthorized. I have searched a lot for a week, but I cannot find the solution, please help. Here is my connection: URL url = new URL("https://api.twitter.com/oauth/request_token"); HttpURL...

How to know the 'controller' and 'action' from the request url in Pylons?

I want to log the controller and action when a request comes, so I write a __before__ in the base controller: class BaseController: __before__(self): controller = get_controller(request) action = get_action(request) logger.log('%s - %s'%(controller, action)) But I don't know how to get the controlle...

InvalidAuthenticityToken from rails for POST request from openlaszlo app.

InvalidAuthenticityToken from rails for POST request Hi All I have a rails server running to which I make a POST request. The dataset is defined as Now per rails documentation in order to make a POST a request I need to set the add "authenticity_token" to the query string. So if for example the authenticity_token is "xxxxxxx", the fin...

ISession per Request (Only when necessary)

Hi Friends, I'm developing an application (asp.net mvc) and I'm using ISession per request (in globa.asax I use Bind and Unbind in Begin_Request event and End_Request event). Everything works fine but sometimes (some requests) I don't need to use an ISession (a connection with database). I'd like to know if is there any way to open an ...

How do I implement a request timeout in grails?

I'd like to be able to set a configurable (by controller/action) request timeout in grails. The objective is to handle a rare high-load failure mode in a deterministic way. For example, I know that if a given controller/action doesn't return in 30 seconds, then something is horribly wrong and I don't want to keep the user hanging. I'd ...

Is PHP timing out, or is it something else that's causing my script's results to vary after each execution?

I have a directory full of XML files. For each of these files I make a search at RIPE. For each search I do a couple of RegEx searches through the returned HTML code. But after a couple of loops, file_get_contents stop returning data, and all my operations after are done on an empty string. I figured PHP may be timing out since these pa...