• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: CFHTTP POST bug? or PHP bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: CFHTTP POST bug? or PHP bug?
      • From: "Mark A. Stratman" <email@hidden>
References: 
 >CFHTTP POST bug? or PHP bug? (From: "Mark A. Stratman" <email@hidden>)

  • Prev by Date: Re: NSOutlineView retaining/releasing data cell
  • Next by Date: NSOutlineView always starts too big
  • Previous by thread: CFHTTP POST bug? or PHP bug?
  • Next by thread: Re: CFHTTP POST bug? or PHP bug?
  • Index(es):
    • Date
    • Thread