Posted by R. Rajesh Jeba Anbiah on 10/02/05 18:33
Janwillem Borleffs wrote:
> R. Rajesh Jeba Anbiah wrote:
> > Is it necessary or is there any standard to send HTTP header status
> > for form inputs ? Say, the user is entering invalid password in login
> > form and now all the applications I have seen are just displaying
> > error messages above the form (with HTTP status 200); is it necessary
> > to send 401 status in this case?
>
> The 401 header is generally only used with REALM authentication. When this
> type of authentication isn't used, the HTTP 200 header is more appropriate,
> because the page is found and the error is handled on the page itself.
>
> Another reason for using HTTP headers is when the application responses are
> interpreted by another application. A quick look at the status then will
> give an indication of the success rate, without parsing the response body.
Thanks for your insights. I was wondering if HTTP status code is
necessary in form processing. Thanks again.
--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/
[Back to original message]
|