Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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 contemplating the Monastery: (7)
As of 2014-08-28 07:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (257 votes), past polls