Forum Moderators: phranque

Message Too Old, No Replies

Using Warning Header in AJAX apps

Do browsers throw up alerts when they see this header?

         

dkubb

10:56 pm on Dec 6, 2005 (gmt 0)

10+ Year Member



Does anyone know if the HTTP Warning header is used by any major browsers?

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.

physics

7:15 pm on Dec 8, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Maybe you could throw up a test script? And let us know if it works ;)