Article View: borland.public.cppbuilder.internet.socket
Article #3365Re: Help on how to decode multipart/form-data
From: Hans Galema
Date: Tue, 25 Oct 2005 00:04
Date: Tue, 25 Oct 2005 00:04
29 lines
1946 bytes
1946 bytes
noel wrote: > I am building a HTTP server and trying to decode the data from an HTML > form. The form action is POST and it has a File field. > The form is sent as a "multipart/form-data" instead of the more familiar > "application/x-www-form-urlencoded" form. Please show the complete html source for that <form> ... </form> and tell the name of the file the user choosed. > Content-type: multipart/form-data, boundary=AaB03x > > --AaB03x > content-disposition: form-data; name="field1" > > Joe Blow field1=Joe Blow Which browser did you use ? Are the results the same with different browsers ? > content-disposition: form-data; name="pics" > Content-disposition: attachment; filename="file1.txt" Is that original ? One time 'content-' and once 'Content-' ? Please copy and paste instead of typing in. Hans.
Technical Details
Message-ID:
<435d7604$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!nntp.theplanet.net!inewsm1.nntp.theplanet.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<435d2270$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,a70bb79561966dc0 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Tue, 25 Oct 2005 02:04:03 +0200 From: Hans Galema <notused@notused.nl> User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.internet.socket Subject: Re: Help on how to decode multipart/form-data References: <435d2270$1@newsgroups.borland.com> In-Reply-To: <435d2270$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 145.98.201.248 Message-ID: <435d7604$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1130198532 145.98.201.248 (24 Oct 2005 17:02:12 -0700) Lines: 29 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!nntp.theplanet.net!inewsm1.nntp.theplanet.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail