jeclark2006 has asked for the wisdom of the Perl Monks concerning the following question:
There are a number of examples of creating multipart form data for sending to a HTTP server.
I found very few, server side parsing examples. This ranged from getting a message that CGI.pm is delisted in the standard perl suite, to finding an HTTP::MultiPartParser library function, etc.
However when using the latter, HTTP::MultiPartParser functions, a 'boundary' pattern was required to be given when creating the object.
So, upon receiving content, how does one find the 'boundary' to then use HTTP::MultiPartParser to then parse the file?
Could someone point me to an example where perl is used to receive the file selected via the multipart form, and then parsed out to filename, and file content segments.
Thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl parsing of multipart content
by daxim (Curate) on Jun 14, 2019 at 07:32 UTC | |
|
Re: Perl parsing of multipart content
by holli (Abbot) on Jun 14, 2019 at 07:54 UTC | |
by afoken (Chancellor) on Jun 14, 2019 at 21:38 UTC | |
|
Re: Perl parsing of multipart content
by hippo (Archbishop) on Jun 14, 2019 at 08:34 UTC | |
|
Re: Perl parsing of multipart content
by Corion (Patriarch) on Jun 14, 2019 at 06:00 UTC |