At the end of one of my controller actions I need to redirect to a page that only accepts put requests. I have been trying to figure out how to get redirect_to to use a put request but to no success.
Is this possible? Or is there another way to accomplish this?
Thanks.
...
Is it possible to detect if an incoming request is being made through a proxy server? If a web application "bans" users via IP address, they could bypass this by using a proxy server. That is just one reason to block these requests. How can this be achieved?
...
I want to access a given Requests ServerVariables, but I can't seem to find anything on Google on how to get access to the Server Vars of the request object. How do I do this or am I doomed to simply never know?
An example of why I'd want to do this (but not actually what I want to do):
User logs in, and you want to store the IP addres...
I am using Nginx in front of 10 mongrels.
When I make a request with size > 2900 I get back an "error code 414: uri too large".
Does anyone know the setting in the nginx conf file which determines the allowed uri length ?
Thanks,
Prakash Raman
...
So I've just downloaded yslow for firebug and have taken a look at the results for a site I am building.
I'm seeing recommendations, for example, to use ETags, cookie-free domain for my static components, and add expires headers.
I'm thinking, well I could go off and fix these but there's more likely a bunch of other optimizations I co...
I want to make asychronous get requests and to take different results based on the input that I provide to each one. Here is my code:
param=1;
$.get('http://localhost/my_page_1.php', param, function(data) {
alert("id = "+param);
$('.resul 5.t').html(data);
});
param=2;
$.get('http://localhost/my_page_2.php', param, function(dat...
Slightly unorthodox question here:
I'm currently trying to break an Apache with a handful of custom modules.
What spawned the testing is that Apache internally forwards requests that it considers too large (e.g. 1 MB trash) to modules hooked in appropriately, forcing them to deal with the garbage data - and lack of handling in the cust...
Hello,
Im looking a way to use different IP addresses for each GET request with standard Net::HTTP library. Server has 5 ip addresses and assuming that some API`s are blocking access when request limit per IP is reached. So, only way to do it - use another server. I cant find anything about it in ruby docs.
For example, curl allows yo...
Is there a built-in way to get at POST/GET parameters in Racket? extract-binding and friends do what I want, but there's a dire note attached about potential security risks related to file uploads which concludes
Therefore, we recommend against their
use, but they are provided for
compatibility with old code.
The best I can fi...