in reply to File Sent via HTTP Content
File uploads must be sent in multipart/form-data encoding, per RFC 1867. See the 'POST' section in the documentation for HTTP::Request::Common for a nice way to upload a file. Once you've fixed the upload, CGI.pm will happily decode it.
Re: Re: File Sent via HTTP Content
by cmilfo (Hermit) on May 05, 2002 at 05:01 UTC
|
Thank you for the information. I read the RFC; for anyone interested (and not wanting to do a quick Google search), here is a link to RFC 1867. When I was asked if I could receive a POST within the content-type and non-form-data, I never even considered it shouldn't/couldn't be done that way. The Java library my coworker is using allows this to be done; he has scaffolding in place that returns random data until I finish the Parser. Well, I will just have to change the protocol we've agreed upon.
Thank you!
Casey | [reply] |
|