CFHTTP POST bug? or PHP bug?
CFHTTP POST bug? or PHP bug?
- Subject: CFHTTP POST bug? or PHP bug?
- From: "Mark A. Stratman" <email@hidden>
- Date: Thu, 27 May 2004 04:05:43 -0500
Sending POST requests with CFHTTP functions seems to have a serious
problem with PHP - the parameters sent are not recognized. Perl's
CGI.pm, on the other hand, can parse them just fine with param();
I've written an HTTP client class that makes use of code nearly
identical to the /Developer/Examples/Networking/POST Example/ example,
and the problem exists in both.
PHP's $_POST variable isn't seeing the parameters it's getting.
To see what I mean, build the "POST Example" program in Xcode and point
it at the following URLs:
http://tg.sporkstorms.org/checkNotify.php (source here:
http://tg.sporkstorms.org/checkNotify.phps)
and
http://tg.sporkstorms.org/checkNotify.pl (source here:
http://tg.sporkstorms.org/checkNotify.txt)
These are simple PHP and Perl (respectively) scripts that just print
out the parameters. Try it with a POST body such as "foo=bar". The
Perl program using CGI::param() parses it fine, the PHP and its
built-in $_POST does not.
Any ideas? Is this a problem with PHP, or a problem with CFHTTP not
being fully compliant, or maybe Apple's example code left some crucial
header out (though i checked it with tcpdump, and all looked well)?
Thanks,
- Mark
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.