Download Firefox: WindowsMac OS X
logo       
Google Custom Search
    AddThis Social Bookmark Button

Re: Trapping error condition: msg#00016

Subject: Re: Trapping error condition
If you look at %process-request, you will see where conditions are reported to the client in the local function handle-http-condition.

There you will see that it calls report-status.

So, you could define your own report-status method on file-upload- maximum-size-exceeded and have it do whatever you want.

You could do whatever in your method, including deal with broken clients.

I'm not sure you want to signal 200, as you would be lying to the client -- assuming your dealing with HTTP 1.1 conformant clients.

BTW, you will surely do better upgrading to cl-http 70.216 running under a more modern OS and Lisp. Maybe time to beta-test 70.126 and generate html 4.0 or xml 1.0.

On Oct 30, 2006, at 5:07 AM, David Johnson-Davies wrote:

Please can someone advise how I can catch an error condition, such as:

file-upload-maximum-size-exceeded

and display a page of my own choice, with a 200 return code, rather than the standard message "File Upload: Maximum Upload File Size Exceeded" with a 413
error code?

Sorry if this is obvious, but I can't see how to do it.

(I'm using cl-http-70-156a with Mac OS 9 and MCL 4.3).

Thanks,
David Johnson-Davies

+------------------------------------------------------------+
David Johnson-Davies, Human-Computer Interface Ltd
17 Signet Court, Swanns Road, Cambridge, CB5 8LA, England.

Tel: +44 1223 314934, Fax: +44 1223 462562
Email: david@xxxxxxxxxxxxxxx, Web: http://www.interface.co.uk/
+------------------------------------------------------------+



_______________________________________________
WWW-CL mailing list
WWW-CL@xxxxxxxxxxxxxxxxxxx
https://lists.csail.mit.edu/mailman/listinfo/www-cl


_______________________________________________
WWW-CL mailing list
WWW-CL@xxxxxxxxxxxxxxxxxxx
https://lists.csail.mit.edu/mailman/listinfo/www-cl



<Prev in Thread] Current Thread [Next in Thread>