Re: CFHTTP POST bug? or PHP bug?
Re: CFHTTP POST bug? or PHP bug?
- Subject: Re: CFHTTP POST bug? or PHP bug?
- From: Izidor Jerebic <email@hidden>
- Date: Fri, 28 May 2004 17:53:56 +0200
On 27 May 2004, at 11:05, Mark A. Stratman wrote:
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();
The PHP docs say this:
// Available since PHP 4.1.0
echo $_POST['username'];
echo $_REQUEST['username'];
import_request_variables('p', 'p_');
echo $p_username;
// Available since PHP 3. As of PHP 5.0.0, these long predefined
// variables can be disabled with the register_long_arrays directive.
echo $HTTP_POST_VARS['username'];
// Available if the PHP directive register_globals = on. As of
// PHP 4.2.0 the default value of register_globals = off.
// Using/relying on this method is not preferred.
echo $username;
What PHP version are you running? Did you try other alternatives for
obtaining parameters?
izidor
_______________________________________________
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.