Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: How do I read POST data that is not encoded, and was submitted without a parameter name

by isotope (Chaplain)
on Dec 14, 2001 at 21:38 UTC ( #132004=note: print w/ replies, xml ) Need Help??


in reply to How do I read POST data that is not encoded, and was submitted without a parameter name

Start with this:

open(OUTPUT, "> test.txt") or die "test.txt: $!"; for(<STDIN>) { print OUTPUT $_; } close(OUTPUT);
And see what's coming in on stdin. The problem should be much clearer, and CGI.pm is not the answer, since your input is not conformant with CGI standards.

Update: Ok, after re-reading your first post, I see that you've already tried this. Now I'll attempt to answer your questions directly. You have the right idea with that sample code, and no, CGI.pm won't help you one bit. You're not dealing with true CGI data. CGI.pm shouldn't be updated to deal with this, because your application isn't compliant with the CGI specifications, which, circularly, is why CGI.pm won't help you out.

--isotope
http://www.skylab.org/~isotope/


Comment on Re: How do I read POST data that is not encoded, and was submitted without a parameter name
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://132004]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2015-07-05 15:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (67 votes), past polls