[ic] Problem with multi-part forms and certain internet connections?

Ed LaFrance interchange-users@icdevgroup.org
Sun Sep 8 12:40:02 2002


Hi all -

I have a client running IC 4.8.5 on a Slackware linux box (kernel 2.4.17) 
with Apache 1.2.23. He was complaining he couldn't use certain functions, 
both standard demo/UI features as well as customized ones I had written, 
without getting internal server errors. Eventually I determined that he 
could not post any forms which had the parameter 
enctype="multipart/form-data" - that was what was causing the errors. 
Regular forms and all other features worked fine.

I could never reproduce the error at my office, but I have done so from 
home, where I use a different internet connection (Cable at home vs DSL 
from work).

There is a corresponding IC error.log entry when the error occurs:

(IP address) - - [08/September/2002:18:09:54 +0200] - 
/cgi-bin/catname/admin/export_table.html CGI mapping error: 
multipart/form-data sent incorrectly:
 > id=tAYeWdHo&mv_pc=523

The apache error log just gives the "Premature end of script headers" error.

Anyone have any ideas on this? It seems to be something specific the the 
client-side internet connection, but I am not sure where to go from here. I 
have done some tests that seem to suggest that the query string component 
of the form action URL (id= & mv_pc=) trigger the error; when those are 
removed the error does not occur - though I need to do some more testing 
with this.

TIA

- Ed L.


===============================================================
Increase profits from your Interchange store...
http://www.newmediaems.com/cgi-bin/nm/software_fus.html
===============================================================
New Media E.M.S.               Software Solutions for Business
463 Main St., Suite D          eCommerce | Consulting | Hosting
Placerville, CA  95667         edl@newmediaems.com
(530) 622-9421                 http://www.newmediaems.com
(866) 519-4680 Toll-Free       (530) 622-9426 Fax
===============================================================