Dear StackOverflow Community,
I am looking to get access to all HTTP traffic on my machine (my windows machine - not a server). From what I understand having a local proxy through which all traffic routes is the way to go. I have been Googling but failed to find any resources (in respect to Ruby) to help me out. Any tips or links are mu...
new_story GET /story/new(.:format) {:action=>"new", :controller=>"stories"}
edit_story GET /story/edit(.:format) {:action=>"edit", :controller=>"stories"}
story GET /story(.:format) {:action=>"show", :controller=>"stories"}
PUT /story(.:format) {:action=>"update", :controller=>"stories"}
...
Normally, when I want to allow a user to download a file without revealing the exact location, I just use something like this to let them download the file:
header("Pragma: public");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Content-Type: application/octet-stream");
header("Conten...
I'm trying to send a byte[] (using PUT) with Restlet but I can't find any info on how to do it. My code looks like this:
Request request = new Request(Method.PUT, url);
request.setEntity( WHAT DO I PUT HERE?, MediaType.APPLICATION_OCTET_STREAM);
I had expected to find something along the lines of ByteArrayRepresentation, just like the...
I don't have any idea how to use this class in .net. Anyone wants to share his knowledge how to implement and use this class?
Have you got any simple procedure that calls a page and process it?
...
Hello,
always the first request (of a working session) to my Rails app is lagging. Switching to production mode
doesn't help.
I use mongrel and the other requests are handled with acceptable speed.
How do I make it faster?
Regards
...
We have a site which is running on a windows 2003 cluster with 2 64bit machines.
The site needs to be able to cope with over 20,000 concurrent users
One of the things that the site does is to allow the download of a 2MB file (which is cached in memory).
We have low CPU and memory usage. We also have surplus bandwidth.
It appears that...
In Java, the attribute field of a HttpServletRequest object can be retrieved using the getAttribute method:
String myAttribute = request.getAttribute("[parameter name]");
Where the HttpServletRequest attribute data is stored in a raw HTTP request? Is it in the body of the request?
For example, I'm trying to create a raw GET HTTP requ...
I'm maintaining a J2ME application where I found a http request to http://www.google.com in application initialization. I asked the developer why there is a request to google. He said that this way the other requests that the application makes would be faster.
I removed this request to google.com and the other requests got slower.
Can ...
I can't tell from RFC 2616 whether an HTTP client should accept a 204 No Content response that includes Content-Length: 0 or Transfer-Encoding: chunked headers. These headers seem to break some HTTP clients and proxies, which apparently attempt to read the empty response body, but the spec reads:
Any response message which "MUST N...
I am trying to limit traffic to my website so that people trying to screenscrape mass amounts of data will be blocked after a while. I am supposed to do this based on the ip of the incoming request. I believe i have this ip limiting functionality written but im stumped on how i can test this. I need to be able to change my ip address man...
I'm working on an iPhone app that makes a multipart HTTP request with multiple image files.
It looks like what's happening, on the server side, is that one of the images is getting parsed properly, but the other two files are not.
Can anybody post a sample HTTP multipart request that contains multiple image files?
...
I'm after a definitive reference to what ASP.NET code is required to disabled browsers from caching the page. There are many ways to affect the HTTP headers and meta tags and I get the impression different settings are required to get different browsers to behave correctly. It would be really great to get a reference bit of code commente...
I'm wondering if there is a way to ensure that an ASP.NET application can only be run using the HTTPS protocol
I'm fine with any code (defensive programming measure perhaps?) that can do the trick, or possibly some IIS/web server setting that can get the job done.
...
I am planning to setup an YAWS webserver as a HTTP proxy server .
I am basically trying to achieve a high throughput HTTP proxy server which should be able to take webscale load.
The requirement is to be able to redirect certain URI's to our company's enterprise portal.
Has anybody used this setup in production ?
Does anybody know of a...
I'm just getting started with some basic distributed apps which involve native apps on various platforms interfacing with a centralized web server. My first instinct is to send data to the server by having the client app send an HTTP POST with a serialized version of the data, but I'm a little unsure how I will handle the impedance misma...
i have a servlet filter that handles errors for both vanilla servlets and jsf pages.
if an error is detected the user is redirected to an error page where he can give feedback.
then i try to read the value in the ErroBean it is there - SOMETIMES. :( about 50% of the time.
FacesContext.getCurrentInstance().getExternalContext().getReque...
We have a simple Response.Redirect on a page that is working inconsistently (IIS 6.0). Most of the time it redirects correctly, but we're getting some users that are complaining that instead of redirecting, they are getting the "302 Object moved to here" page. The page displays the header information with the correct location. If you cli...
I need to write a python script that makes multiple HTTP requests to the same site. Unless I'm wrong (and I may very well be) urllib reauthenticates for every request. For reasons I won't go into I need to be able to authenticate once and then use that session for the rest of my requests.
I'm using python 2.3.4
...
I need to be able to distinguish http 302 redirects from my code that use .net remoting.
In order to connect to the appropriate url we try them in order until one works. In most environments the first url correctly fails with a System.Net.WebException with a status of
WebExceptionStatus.NameResolutionFailure.
For Customers that use Op...