http-requests

How do can you make redirect_to use a different HTTP request?

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. ...

How to tell if a Request is coming from a Proxy?

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? ...

In Rails, how do I access the Request.ServerVariables like you do in ASP?

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...

How to set the allowed url length for a nginx request (error code: 414, uri too large)

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 ...

YSlow recommendations. How necessary are they?

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...

problem with multiple ajax HTTP get requests with different imput variables using jQuery

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...

HTTP requests and Apache modules: Creative attack vectors

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...

Is there a way to attach Ruby Net::HTTP request to a specific IP address / network interface?

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...

POST/GET bindings in Racket

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...