Comments (3)
[email protected] - 2011-08-16 14:30:12
Unfortunately, the code below demands a content type of some kind
or the script parses the content regardless. Unfortunately, recent
builds of Chrome have resulted in a version of the file uploader which
has no content value
We are most concerned with following standards, rather than specific
browsers. What do the standards stay about this case?
Links to specific RFC passages are helpful.
Mark
from cgi.pm.
http://cgfirecoral.myopenid.com/ - 2011-08-16 14:59:36
We are most concerned with following standards, rather than specific
browsers. What do the standards stay about this case?Links to specific RFC passages are helpful.
Mark
Standards seem to be unclear about this. RFC 1867 covers
multipart/form-data in detail for file uploads and the code
handles this well. What isn't really discussed is what to
do when another non-form content type is passed (say image/jpeg).
I think this is a little late in the flow for standards to come
into play. CGI.pm attempts to provide the request in a useable
condition: either parsed parameters or as a single POSTDATA
parameter.
The content is parsed in the following situations:
content-type: application/x-www-form-urlencoded
content-type: multipart/form-data
content-type: none
It is not parsed in all other cases. The attempt to parse
when you have no content-type is directly contradictory to
the CGI.pm documentation for non-urlencoded arguments:
If POSTed data is not of type application/x-www-form-urlencoded or
multipart/form-data, then the POSTed data will not be processed, but
instead be returned as-is in a parameter named POSTDATA.
I would argue that it is a mistake to process content that
does match either of the encoded content-types.
from cgi.pm.
[email protected] - 2011-08-16 15:22:40
Thanks for spelling out the situation clearly. I'll give the proposal
due consideration.
from cgi.pm.
Related Issues (20)
- start_form isn't mentioned in the man page HOT 2
- SameSite=None not mentioned in Pod? HOT 1
- Probable typo HOT 1
- CGI::Cookie->bake() doesn't work with mod_perl redirects HOT 1
- $q->url(-rewrite=>0) doesn't return rewritten URI HOT 2
- Nondeterministic hash key ordering HOT 1
- CGI:cookie subroutine does not pass max-age to CGI::Cookie->new
- Copying max-age from a cookie HOT 2
- Getting error Odd number of elements in hash assignment at .../CGI/Util.pm line 112 in apache log file HOT 11
- Remove dependency on CGI.pm in high river CPAN dists. HOT 4
- Buggy cache in CGI->cookie HOT 1
- How to get header info when using hook HOT 7
- _decode_utf8() method allows invalid UTF-8 sequences. HOT 3
- IPv6 addresses not handled correctly HOT 2
- t/changes.t fails if Test::CPAN::Changes HOT 1
- 4.59: test suite is failing HOT 1
- ->url being a object breaks everything HOT 4
- tar: Ignoring malformed pax extended attribute HOT 3
- Homepage 404 not found HOT 1
- '->url' tests failing when trying to build CGI 4.64 - Similar to #263 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cgi.pm.