My question is about how to reply a HTTP 304 "Not Modified" when I receive both if-none-match and if-modified-since from a proxy/client request.
From RFC 2616 secttion 14.26 ( http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.26 ):
If none of the entity tags match, then
the server MAY perform the requested
method as i...
We host our web-service on a dedicated server.
Sometimes (I'd say 1 out of 20) a response is not received from the server.
That makes the browser fallback with time-out error.
An important detail: the request is not logged by Apache in this case.
There is no load on Apache, there are a lot of free memory and CPU power left.
[UPDATE]
I...
I'm currently playing around with a build / deployment script for minifying static resources. Following good practice I'd like to set an expire header far into the future for most of my javascript, stylesheet and images.
To my question, when one or more of the static files has changed clients should ask for the newest version of the fi...
Greetings,
How do I turn off ETag(s) in Ruby on Rails v2.3.5
When I do a direct request to to the RoR/Mongrel an ETag header is present.
TIA,
-daniel
...
Is there a particular order in PHP to set HTTP headers with the header() function ?
I mean for example must I call header('Content-Language: en'); before header('Content-Type: text/plain'); or whathever order will be OK.
My guess is that order isn't important as long as all he headers are set before any content outputted, but I just wa...
If you look at the PHP doc help for function session_cache_limiter(), you will see that if the cache_limiter parameter is set to private or nocache the Expires HTTP header is set to a const date (Thu, 19 Nov 1981 08:52:00 GMT). I understand that this is a date in the past to avoid caching, but why this date/time in particular? It's not t...
I have a CGI script I'm writing that's handling a streaming file upload. I'm also using Apache. If a certain size limit is reached, I have the CGI script finish things up, then it sends an HTTP redirect and exit. What I'd like to have happen at this point is for Apache to close the connection. Instead, what Apache does is keep the co...
I would like to send some sort of token on one request and store it at the client but not have that token retransmitted on subsequent requests.
...
There are a lot of code examples for using .htaccess to add www to a url but they are usually confined to using http. does anybody have an example of how to get it to work in both cases?
...
I have a standard restful rails application.
format.html { @users = User.find(:all, :limit => 10)}
format.csv { @users = User.find(:all, :limit => 10) }
When the url is
http://localhost:3000/users.csv
I get a file with name users.csv .
However if the url is
http://localhost:3000/users?format=csv
then the file I get has name use...
I am making an HTTP request from a j2me application for CDC. The GET request method woks just fine but when i am using the post method i get the message:
Status Line Code: 413
Status Line Message: Request Entity Too Large
The message that i am sending is only 5 characters long so i don't know which is the problem.
The code is listed ...
I'm pretty new to Log4Net (I used log4j), and I'm wondering the best strategy for sending error logs (on Error or Fatal Error) to a URI. The server's already set up and listening.
I was going to risk re-inventing the wheel and extend the AppenderSkeleton class to create a POSTAppender. Is there any easier way to do it?
...
For our webservice, I wrote some logic to prevent multipart/form-data POSTs larger than, say, 4mb.
It boils down to the following (I've stripped away all WebOb usage and just reduced it to plain vanilla WSGI code):
import paste.httpserver
form = """\
<html>
<body>
<form method="post" enctype="multipart/form-data" action="/">
<in...
I have a page that requires the user to go through several steps, however step is performed on the same ASPX page with different panels being displayed.
However this is a requirement that each step has a different URL, this could be a simple as a query string parameter, for example:
Step 1:
/member/signup.aspx?step=1
Step 2:
/member/s...
I need to visit a URL, find a specific text box in said page - fill it with data and then submit a form.
How can I accomplish this in C#?
P.S. Innocent intentions.
...
Hi
I'm using the following simple PHP proxy script but am getting a sporadic message at the destination site.
I'm thinking that perhaps it may have something to do with the HTTP_REFERER header, although I'm not explicitly defining it.
Can anyone tell me how to explicitly turn off or leave the HTTP_REFERER header blank?
Thanks in advan...
Hi all expert,
Somebody pls clear my concept What is HTTP module and HTTP Handler and how does they work while page requesting???
How authentication and Authorization process work in asp.net???
Thanks,
Kumar
...
How do I take a string and use something like GZIPOutputStream to gzip the string and then output the zipped content as a string.
My intention is to transfer the zipped content as a post variable through HTTP.
...
I use PHP 5.2.9.
To see/log errors, at the beggining of my script I have:
error_reporting(E_ALL | E_STRICT);
ini_set('display_errors', 'On');
ini_set('log_errors', 'On');
ini_set('error_log', $_SERVER['DOCUMENT_ROOT'] . '/php.log');
But when I use the first of the next two lines, my script issue a HTTP 500 error, and nothing is displ...
I am writing an application in which application errors are logged and posted to a listening HTTP port on our server. We decided against email since many of the clients running the server "would not be able to send anything through SMTP" (according to boss dude)
I was just going to send the data as-is using log4net and a custom-written ...