Forum Moderators: phranque
In case you've not heard of Warning before, more info can be found in RFC 2616 [rfc.net], in section 14.46.
Here's an quote on how it's supposed to be used:
When multiple Warning headers are attached to a response, the user agent ought to inform the user of as many of them as possible, in the order that they appear in the response.
I was just wondering if any browsers actually did this?
The reason I'm asking is that I'm doing some programming on an AJAX-enabled app, and I wanted an easy way to communicate common problems (like input validation errors) back to the user-agent in a consistent format -- regardless of if I'm returning javascript code or JSON/XML/HTML content. I thought using a standard header would be the best way to do this.
From what I've read, this is how the Warnings header was specifically meant to be used. My plan is to take the Warning header values and display them in my HTML, but I just don't want the browser to throw up alert boxes.