[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl-WebCGI] HTTP File Uploads



Greetings!

Anyone here handled HTTP File Uploads before (as per RFC 1867)?

The HTML side is straight-forward, but I'm not having too much luck with 
the server side of things.  Can't find anything on CPAN about 
multipart/form-data decoding, either.

Doesn't sound like it should be too tricky:

1) process the incoming data one line at a time
2) detect new content boundaries
3) hand control to the appropriate decoding subroutine based on 
Content-Type
4) return to the main loop at the end of boundary marker
5) repeat until finished

There's gotta be a catch, though, because I keep ketting hit with 
"Premature end of script headers" from my web server, which probably 
means that I'm not getting (and handling) all the boundaries properly.  
Maybe?

Anyway, if this all sounds familiar, let us know.

Ta.

Henry.

==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-webcgi-request@macperl.org