
DrZed
User
Jun 18, 2000, 11:59 PM
Post #3 of 3
(348 views)
|
|
Re: POST-Problems while getting yahoo-mail
[In reply to]
|
Can't Post
|
|
<form method=post action="blabla" autocomplete=off name=a> Well, post refers to the method that the data will be sent. Without knowing your script, I can't say if your sending the data the same way, but you probably are. It's also possible that they wouldn't care either way. However, the name attribute has me a bit puzzled. I've never used it in a form tag. It may be sending data, just like naming a submit button will. You might want to make a copy of their generated page, change the action to a script of yours, and have the script print out the contents of the various places data get's stuck. Something like the following might be useful to read whatever data is sent to it and spit it out: &read_arg_data; foreach ($arg_data) { print "$_: $arg_data{$_}"; } sub read_arg_data { my ($name,$value); if ($ENV{'CONTENT_TYPE'} eq 'application/x-www-form-urlencoded') { if ($ENV{'CONTENT_LENGTH'}>131072) { die "DZForum: POST content length overflow: $ENV{'CONTENT_LENGTH'} bytes!\n"; } read(STDIN,$ENV{'QUERY_STRING'},$ENV{'CONTENT_LENGTH'}); } if ($ENV{'QUERY_STRING'}) { foreach ( split(/&/,$ENV{'QUERY_STRING'}) ) { ($name,$value) = split(/=/); $name =~ s/\+/ /g; $value =~ s/\+/ /g; $name =~ s/\%([0-9A-Fa-f]{2})/chr(hex($1))/ge; $value =~ s/\%([0-9A-Fa-f]{2})/chr(hex($1))/ge; $arg_data{$name} = $value; } } }
|